Skip to main content

A Python library for proxy server list management

Project description

Configuration

(TODO: Fill out this section)

Usage

Python invocation

To import a text file containing a proxy server list:

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

To make a request:

r = proxy_factory.make_request('https://github.com/suminb/hallucination')
print r.text

Shell frontend

To create an SQLite database file:

python frontend.py -c proxy.db

To export the proxy server list to a text file:

python frontend.py -e proxylist.txt

To import a text file containing a proxy server list:

python frontend.py -i proxylist.txt

Project details


Download files

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

Source Distribution

hallucination-0.2.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page