Localize and test a given freeproxy
Project description
iplocalize
Straight forward python3 library to test (quickly) and locate a bunch of free-proxy IP.
Python module
import iplocalize as ip
locator = ip.IPLoc()
locator.threaded_localize([['1.2.3.4', '1111'], ['5.6.7.8', '2222'], ...])
> > > { ip: '1.2.3.4:1111', cc: 'RU', time: 1.492218 }
IPLoc class will accept several parameters :
geolite_file
: path to your copy of Geolite2-city.mmdb (https://www.maxmind.com)test_url
: the URL the proxy will be tested upon (http200, and faster than timeout)timeout
: timeout (directly passed to requests, the actual request might be longer than timeout)threads
: number of concurrent jobs
The default value for threads is 100, it might sound huge, but it gave me me pretty good results, feel free to tweak it to your needs.
Command line
Just run : iplocalize --help
Nothing fun or complicated.
Disclaimer
Geolocation is provided through Geolite mmdb files, they have a free version available through their website.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iplocalize-0.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for iplocalize-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90339b56c870f0c3c9339a24bb1d940cba575f4ace2f395efb7b66f6bfe582fa |
|
MD5 | b7c94b3ce1e5738ad291485f57451758 |
|
BLAKE2b-256 | 8dad2c7d4c74f9dba5202365e18670b4748370809bab8a5c6264fa7d7b605936 |