Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.
/ proxybrigade Public archive

Automatically creates multiple AWS EC2 proxy servers and/or retrieves and tests publicly available proxies

Notifications You must be signed in to change notification settings

malzzz/proxybrigade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxybrigade

Description

This is kind of a useless repo; however, it's one of the first things I wrote when learning Python, so it has some nostalgia value (even though, as a general principle, I'm not a fan of dynamically-typed languages).

This is a utility for getting proxy servers. It has functions for getting either private or public proxy servers. If you need private proxy servers, it can instantiate a specified number of AWS EC2 instances that run tinyproxy. If public proxy servers are acceptable, it will retrieve a list of proxies and test them sequentially until the specified number is reached.

I made this as part of a larger application, but I thought it worked well as a stand-alone module in the case that someone needs to retrieve/use mutliple proxy servers.

Usage

$ python proxies.py --ec2 [number of ec2 instances] --public [number of public proxies]

As a module:

import proxybrigade.proxymanager as proxymanager

# Create AWS EC2 proxies
proxymanager.create_instances(how_many_to_create)

# List of proxies
my_ec2_proxy_list = proxymanager.ec2proxy.proxy_list

# Terminate EC2 instances
proxymanager.terminate_instances()

# Specify the (n)umber of public proxies desired
proxymanager.publicproxy.how_many_to_get = n

# Get and test the proxies 
proxymanager.publicproxy.get_proxies()

# List of (up) public proxies 
my_public_proxy_list = proxymanager.publicproxy.proxy_list

Assumptions

You have AWS properly configured and have the necessary credentials to create instances.

Dependencies

  • boto3
  • pathos.multiprocessing
  • requests
  • termcolor

About

Automatically creates multiple AWS EC2 proxy servers and/or retrieves and tests publicly available proxies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages