I made this software to scrap proxies for my web scrapping and other testing purposes. This program just uses requests to get the response from API and return the proxies.
pip install proxygrab --upgrade
import proxygrab
socks5_list = proxygrab.get_socks5() # Returns socks5 proxylist
socks4_list = proxygrab.get_socks4() # Returns socks4 proxylist
http_list = proxygrab.get_http() # Returns http proxylist
https_list = proxygrab.get_https() # Returns https proxylist
proxy_list = proxygrab.get_proxy(type) # Type can any one from http, https, socks4, socks5
proxygrab --help
- To save proxies to file:
proxygrab --type http --save
- Save to custom filename:
proxygrab --type http --outfile custom_filename.txt --save
- Save 100 proxies to custom filename:
proxygrab --type http --count 100 --outfile custom_filename.txt --save
- Print only 5 proxies to terminal:
proxygrab --type http --count 5
- Print only 5 proxies to terminal:
proxygrab --type http --count 5
If no proxy type is specified, the program will show this message:
"No Proxy type specified, check help by proxygrab --help"
Wanna help to improve this project?
Make sure to follow these before opening a PR:
- Make sure your PR is formatted with Black.
- Make sure the package is working.
- Python - Programming Language
- Skuzzy xD - SkuzzyxD
This project is licensed under the MIT License - see the LICENSE.md file for details
Proxy Server data courstey of: