GithubHelp home page GithubHelp logo

anthrax3 / proxify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s0md3v/proxify

0.0 2.0 0.0 26 KB

A python module for dumping usable proxies.

License: GNU General Public License v3.0

Python 100.00%

proxify's Introduction

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

proxify's People

Contributors

s0md3v avatar tbhaxor avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.