Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for hallucination, version 0.2.16
Filename, size File type Python version Upload date Hashes
Filename, size hallucination-0.2.16.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page