http_request_randomizer.requests.proxy package

Submodules

http_request_randomizer.requests.proxy.ProxyObject module

class http_request_randomizer.requests.proxy.ProxyObject.AnonymityLevel(value)

Bases: enum.Enum

UNKNOWN: The proxy anonymity capabilities are not exposed TRANSPARENT: The proxy does not hide the requester’s IP address. ANONYMOUS: The proxy hides the requester’s IP address, but adds headers to the forwarded request that make it clear

that the request was made using a proxy.

ELITE: The proxy hides the requester’s IP address and does not add any proxy-related headers to the request.

ANONYMOUS = 2
ELITE = 3
TRANSPARENT = 1
UNKNOWN = 0
classmethod get(name)
class http_request_randomizer.requests.proxy.ProxyObject.Protocol(value)

Bases: enum.Enum

An enumeration.

HTTP = 1
HTTPS = 2
SOCS4 = 3
SOCS5 = 4
UNKNOWN = 0
class http_request_randomizer.requests.proxy.ProxyObject.ProxyObject(source, ip, port, anonymity_level, country=None, protocols=[], tunnel=False)

Bases: object

get_address()
to_str()

http_request_randomizer.requests.proxy.requestProxy module

class http_request_randomizer.requests.proxy.requestProxy.RequestProxy(web_proxy_list=[], sustain=False, timeout=5, protocol=<Protocol.HTTP: 1>, log_level=0)

Bases: object

generate_proxied_request(url, method='GET', params={}, data={}, headers={}, req_timeout=30)
generate_random_request_headers()
get_proxy_list()
randomize_proxy()
set_logger_level(level)

Module contents