Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A Python library for proxy server list management

Project Description

Travis CI

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
Release History

Release History

This version
History Node

0.2.16

History Node

0.2.15

History Node

0.2.14

History Node

0.2.13

History Node

0.2.12

History Node

0.2.11

History Node

0.2.10

History Node

0.2.9

History Node

0.2.9-rc3

History Node

0.2.9-rc2

History Node

0.2.9-rc1

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hallucination-0.2.16.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Nov 12, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting