Skip to main content

Travis CI

https://travis-ci.org/suminb/hallucination.png?branch=master:target:https://travis-ci.org/suminb/hallucination

Prerequisites

Usage

Python invocation

To create database tables:

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

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')

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('http://github.com/suminb/hallucination')
print r.text

You may specify timeout in seconds:

r = proxy_factory.make_request('http://github.com/suminb/hallucination', timeout=5)
print r.text

Shell frontend

To create an SQLite database file:

python frontend.py -d proxy.db -c

To import a text file containing a proxy server list:

python frontend.py -d proxy.db -i proxylist.txt

To export the proxy server list to a text file:

python frontend.py -d proxy.db -x proxylist.txt

An exported file may look like the following:

http://84.42.3.3:3128
http://77.94.48.5:80
http://209.62.12.130:8118
http://159.255.160.23:8080
http://50.57.170.105:80

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.16.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file hallucination-0.2.16.tar.gz.

File metadata

File hashes

Hashes for hallucination-0.2.16.tar.gz
Algorithm Hash digest
SHA256 18324143b22c92ef1f32513f2c4906e9e4d1092f9086d049e4740d187b2490fd
MD5 4a878dba8c960762e6cde2c83c55e354
BLAKE2b-256 ea1048c9a1b052c4c75d4784ff76da56f6f7209493b35c1ec10d1141fb29af7a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.16 This release

1 file

0.2.15

1 file

0.2.14

1 file

0.2.13

1 file

0.2.12

1 file

0.2.11

1 file

0.2.10

1 file

0.2.9

1 file

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page