Simple http proxy grabber and checker
Project description
Proxy-Grabber
Simple http proxy grabber and checker
Installation
$ pip3 install proxy-grabber
Usage
from proxy_grabber import ProxyGrabber
grabber = ProxyGrabber()
# --- Grabbing proxies ---
# Parse proxy from different sources
# You can call generate_proxy_list() without arguments if you want to grab as more proxies as possible
grabber.grab_proxies(proxy_limit=100)
# --- Adding proxies ---
# Notice: you can add proxies without grabbing
# You can add some proxies from the file
grabber.load('./data/proxy.list')
# Or you can add proxy manually
grabber.add_proxies(['ip:port', 'ip:port', ...])
# --- Checking proxies ---
# [optional]
# You can specify proxy countries
grabber.set_countries(['US', 'RU', 'CA', ...])
grabber.check_proxies()
# --- Get results ---
grabber.get_proxy() # Random checked proxy
grabber.get_checked_proxies() # All checked proxies
grabber.save('./data/checked_proxies.list') # Save checked proxies to the file
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
proxy-grabber-1.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for proxy_grabber-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7acf69a3948bd22553df9d8fbb7845dc5aa34ad8043688cd4b4b56eb9d18820 |
|
MD5 | bd55e9431fa78bc85be110b1735f892d |
|
BLAKE2b-256 | 79da1a74937d37fcbcefb3c01a22ee8425f506aad5461fc4dc376c9a75336bad |