Skip to main content

A Python library for proxy server list management

Project description

Travis CI



Python invocation

To create database tables:

proxy_factory = ProxyFactory(config=dict(db_uri='sqlite:///test.db'))

To import a text file containing a proxy server list:

proxy_factory = ProxyFactory(config=dict(db_uri='sqlite:///test.db'))

Hallucination supports multiple database backends, as long as supported by SQLAlchemy.

proxy_factory = ProxyFactory(config=dict(db_uri='postgres://user:password@host/database'))

To make a request:

r = proxy_factory.make_request('')
print r.text

You may specify timeout in seconds:

r = proxy_factory.make_request('', timeout=5)
print r.text

Shell frontend

To create an SQLite database file:

python -d proxy.db -c

To import a text file containing a proxy server list:

python -d proxy.db -i proxylist.txt

To export the proxy server list to a text file:

python -d proxy.db -x proxylist.txt

An exported file may look like the following:

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
hallucination-0.2.16.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page