Skip to main content

scrape proxies from more than 5 different sources and check which ones are still alive

Project description

Proxy scraper and checker

Tests

Scrape more than 1K HTTP - HTTPS - SOCKS4 - SOCKS5 proxies in less than 2 seconds.

Scraping fresh public proxies from different sources:

Installation

Use this command to install dependencies.

pip3 install -r requirements.txt

Usage

For scraping:

python3 proxyScraper.py -p http
  • With -p or --proxy, You can choose your proxy type. Supported proxy types are: HTTP - HTTPS - Socks (Both 4 and 5) - Socks4 - Socks5
  • With -o or --output, create and write to a .txt file. (Default is output.txt)
  • With -v or --verbose, more details.
  • With -h or --help, Show help to who did't read this README.

For checking:

python3 proxyChecker.py -p http -t 20 -s https://google.com -l output.txt

python3 proxyChecker.py -p https -t 20 -s https://google.com -l output.txt

python3 proxyChecker.py -p socks4 -t 20 -s https://google.com -l output.txt

python3 proxyChecker.py -p socks5 -t 20 -s https://google.com -l output.txt
  • With -t or --timeout, dismiss the proxy after -t seconds (Default is 20)
  • With -p or --proxy, check HTTPS,HTTP,SOCKS4 or SOCKS5 proxies (Default is HTTP)
  • With -l or --list, path to your list.txt. (Default is output.txt)
  • With -s or --site, check with specific website like google.com. (Default is google.com)
  • With -r or --random_agent, it will use a random user agent per proxy.
  • With -v or --verbose, more details.
  • With -h or --help, Show help to who did't read this README.

Good to know

  • Dead proxies will be removed and just alive proxies will stay.
  • This script is also able to scrape Socks, but proxyChecker only checks HTTP(S) proxies.

Star History

Star History Chart

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Issues

Feel free to submit issues and enhancement requests or contact me via vida.page/nima.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxyz-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

proxyz-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file proxyz-0.1.0.tar.gz.

File metadata

  • Download URL: proxyz-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for proxyz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2636f77091710832967eec9d8f8f93b7b65b456457096d9d0d1ef3a6d12e9d18
MD5 631c224c670863340838c1db832d4b21
BLAKE2b-256 7b2703bc1bc1f0fd39974c7daa23ed0b3df95a5ed7f4f01017786c18194adc45

See more details on using hashes here.

File details

Details for the file proxyz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: proxyz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for proxyz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a50ef1c640102b33943fa96265cdeed417df626ac743759d068371c21956ef
MD5 146284d36d5dd5ed42c64c8eb41a944e
BLAKE2b-256 8b1a17e8b1d9743deb5e7268f9f2e1780c2e38cfee4f69016ffbcd1659c24889

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page