Hey there, welcome to the My Proxy repo! 🚀 If you're into proxies, you've hit the jackpot. We've got two awesome scripts here to help you with all your proxy shenanigans: a Proxy Checker and a Proxy Scraper.
- Proxy Checker: Test if your proxies are working or not.
- Proxy Scraper: Scrape and save fresh proxies from various sources.
Before you get started, make sure you have the following installed:
- Python 3
requests
libraryargparse
librarytermcolor
libraryflake8
librarypep8-naming
library
You can install the required libraries with:
pip install -r requirements.txt
The Proxy Checker is designed to quickly and easily test proxies to see if they’re working. You can test proxies from a list, check a single proxy, and even choose to save the working ones.
python proxychecker.py [-h] [-l LIST] [-o OUTPUT] [-t TARGET] [-a]
-l
or--list
: Specifies the file with the list of proxies to be tested.-o
or--output
: Saves the working proxies to the specified file.-t
or--target
: Tests a single proxy (e.g.,-t 127.0.0.1:8008
).-a
or--all
: Show all statuses (both working and not working proxies).-h
or--help
: Show the help message and exit.
To test a list of proxies from a file and save the working ones:
python proxychecker.py -l proxy.txt -o working_proxies.txt
To test a single proxy:
python proxychecker.py -t 127.0.0.1:8008
If you want to see all the results, not just the working ones:
python proxychecker.py -l proxy.txt -a
When you run the Proxy Checker, the output in your terminal will look like this:
127.0.0.1:8008 -> Working
192.168.0.1:8080 -> Not Working
The Proxy Scraper allows you to scrape fresh proxies from the web, based on the type of proxy you need (HTTP, HTTPS, SOCKS4, SOCKS5). You can save the results to a file and even increase verbosity to see more details during scraping.
python proxyscraper.py [-h] -p PROXY [-o OUTPUT] [-v]
-p
or--proxy
: Specify the type of proxy you want to scrape (http
,https
,socks4
,socks5
).-o
or--output
: Save the scraped proxies to the specified file.-v
or--verbose
: Increase output verbosity to see more details during scraping.-h
or--help
: Show the help message and exit.
To scrape HTTP proxies and save them to a file:
python proxyscraper.py -p http -o scraped_proxies.txt
To scrape SOCKS5 proxies and see more detailed output:
python proxyscraper.py -p socks5 -v
With My Proxy, you can easily manage your proxies, whether you're testing their reliability or scraping fresh ones. Enjoy proxy hunting and scraping! 🕵️♂️