/proxify

A python module for dumping usable proxies.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Proxify python version license

Proxify is a python module for dumping usable proxies.
It supports both python2 and python3 and can be install via pip as follows.

pip install proxify

Documentation

The proxies returned by proxify are in following format:

protocol://ip_address:port

For example,

http://127.0.0.1:8080

To get 1 proxy you can simply do this:

import proxify
proxy = proxify.one()

Output:

http://103.74.244.199:8080

To get many proxies, do this:

import proxify
proxy = proxify.many()

Output:

[u'http://47.88.32.46:3128', u'http://47.52.222.165:80', u'http://37.59.47.13:3128',
u'http://67.63.33.7:80', u'http://51.15.35.239:3128', u'http://185.82.212.95:8080',
u'http://151.80.140.233:54566', u'http://27.254.200.55:80', u'http://173.212.228.42:10059',
u'http://115.84.178.73:6666', u'http://47.88.242.10:80'
.....
u'http://54.207.104.166:8080']

To dump a specific number of proxies, lets say '5'. You can do this:

import proxify
proxy = proxify.get(5)

Output:

[u'http://47.88.32.46:3128', u'http://47.52.222.165:80', u'http://37.59.47.13:3128',
u'http://67.63.33.7:80', u'http://51.15.35.239:3128']

Note

The many() function dumps 300 proxies which is also the maximum number of proxies you can dump with get() function. If you specify a number large than 300, it will automatically become 300.
The one() function returns a string while many() and get() return a list.

Dependencies

  • requests
  • re
  • random

Made with heart by Somdev Sangwan