Git Product home page Git Product logo

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:

[{
	'ip': '---.---.---.---',
	'port': '------',
	'country': {
		'code': '--',
		'name': '-------'
	},
	'anonymity': '--------',
	'google': True / False,
	'https': True / False,
	'last_update': '--------',
	'url': 'protocol://ip_address:port'
}]

To get 1 proxy you can simply do this:

import proxify
proxy = proxify.fetch(count=1)

Output:

[{
	'ip': '138.36.7.45',
	'port': '40973',
	'country': {
		'code': 'BR',
		'name': 'Brazil'
	},
	'anonymity': 'elite proxy',
	'google': False,
	'https': True,
	'last_update': '1 minute ago',
	'url': 'https://138.36.7.45:40973'
}]

To get many proxies, do this:

import proxify
proxy = proxify.fetch()

Output:

[{
	'ip': '138.36.7.45',
	'port': '40973',
	'country': {
		'code': 'BR',
		'name': 'Brazil'
	},
	'anonymity': 'elite proxy',
	'google': False,
	'https': True,
	'last_update': '1 minute ago',
	'url': 'https://138.36.7.45:40973'
},
....
{
	'ip': '189.51.101.126',
	'port': '39108',
	'country': {
		'code': 'BR',
		'name': 'Brazil'
	},
	'anonymity': 'elite proxy',
	'google': False,
	'https': False,
	'last_update': '3 minutes ago',
	'url': 'http://189.51.101.126:39108'
}]

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

import proxify
proxy = proxify.get(count=2)

Output:

[{'ip': '125.26.6.98', 'port': '32385', 'country': {'code': 'TH', 'name': 'Thailand'}, 'anonymity': 'elite proxy', 'google': False, 'https': True, 'last_update': '2 minutes ago', 'url': 'https://125.26.6.98:32385'}, {'ip': '117.58.245.114', 'port': '53985', 'country': {'code': 'BD', 'name': 'Bangladesh'}, 'anonymity': 'elite proxy', 'google': False, 'https': True, 'last_update': '2 minutes ago', 'url': 'https://117.58.245.114:53985'}, {'ip': '103.36.126.14', 'port': '43999', 'country': {'code': 'IN', 'name': 'India'}, 'anonymity': 'elite proxy', 'google': False, 'https': True, 'last_update': '2 minutes ago', 'url': 'https://103.36.126.14:43999'}, {'ip': '181.129.140.226', 'port': '38681', 'country': {'code': 'CO', 'name': 'Colombia'}, 'anonymity': 'elite proxy', 'google': False, 'https': True, 'last_update': '2 minutes ago', 'url': 'https://181.129.140.226:38681'}, {'ip': '114.5.195.226', 'port': '8080', 'country': {'code': 'ID', 'name': 'Indonesia'}, 'anonymity': 'anonymous', 'google': False, 'https': True, 'last_update': '2 minutes ago', 'url': 'https://114.5.195.226:8080'}]

NOTE The filter() function dumps 300 proxies which is also the maximum number of proxies. If you specify a number large than 300, it will automatically become 300.

Dependencies

  • re
  • urllib

Made with heart by Somdev Sangwan

proxify's People

Contributors

connorskees avatar s0md3v avatar tbhaxor 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.