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.

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

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page