Giter Club home page Giter Club logo

proxy-scraper's Introduction

Proxy Scraper

Proxy Scraper is a Python-based project that scrapes and validates HTTP proxies from various sources. It automatically updates proxies.txt every six hours so you can use it in your code. Don't forget to use the raw version.

Demo

Project Structure

The main script of the project is located in main.py. This script performs the scraping and validation of proxies. The validated proxies are then written to a file named proxies.txt.

How It Works

The script fetches proxy lists from two sources. After fetching the proxies, the script validates each proxy to ensure it's working. This is done by attempting to open a URL using the proxy. If the URL opens successfully, the proxy is considered working; otherwise, it's considered bad.

The script uses multithreading to speed up the validation process. The number of threads used is equal to the number of proxies to be validated.

Once all proxies have been validated, the script writes the working proxies to a file named proxies.txt.

How to Run

To run the script, simply run python3 main.py. Make sure you have the required Python libraries installed. You can install them using pip:

pip install requests termcolor

Output

The output of the script is a file named proxies.txt that contains the list of working proxies. Each proxy is written on a new line.

Future Improvements

Future improvements to the project could include adding more sources for proxy lists, improving the validation process, and adding a user interface for easier use.

Contributing

Contributions to the project are welcome. If you have a feature request, bug report, or want to improve the code, feel free to open an issue or submit a pull request.

License

This project is open source and available under the MIT License.

proxy-scraper's People

Contributors

berkay-digital avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

proxy-scraper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.