Skip to main content

Localize and test a given freeproxy

Project description


Straight forward python3 library to test (quickly) and locate a bunch of free-proxy IP.

Build Status


pip install iplocalize

Python module

import iplocalize as ip

locator = ip.IPLoc()
locator.threaded_localize([['', '1111'], ['', '2222'], ...],
> > > { ip: '', cc: 'RU', time: 1.492218 }

IPLoc class will accept several parameters :

  • 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

threaded_localize needs 2 parameters:

The default value for threads is 100, it might sound huge, but it gave me pretty good results, feel free to tweak it to your needs.

You can call localize directly with:

  • a single ['ip', 'port'] structure
  • a Reader() object (cf. GeoIP2 module documentation)

Command line

Just run : iplocalize --help

Nothing fun or complicated.


Geolocation is provided through Geolite mmdb files, they have a free version available through their website.

Project details

Download files

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

Files for iplocalize, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size iplocalize-0.0.2-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size iplocalize-0.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page