Skip to main content

FreeProxyRevolver

This package provides implements requests library and automatically routes your requests through proxies, automatically revolving to the next proxy when requests become unsuccessful through it

Installation

pip3 install FreeProxyRevolver

Usage

import FreeProxyRevolver

pr = FreeProxyRevolver.Revolver()

# Use just like requests
response = pr.get("http://example.com", min_anon_level=1)
print(response.content)

# This specifies to only use anonymous proxies or better, test that they're truly anonymous, and rotate proxies a maximum of 6 times before giving up on rotating for different response code
anon_pr = FreeProxyRevolver.Revolver(min_anon_level=1, max_rotates=6, test=True)
anon_response = anon_pr.get("http://example.com", min_anon_level=1)
print(anon_response.content)

You can also specify to use a fake user agent in requests like this: pr.get("http://example.com", use_fake_ua=True). Websites will often block requests if there is not a user agent header, this will take care of that issue for you

FreeProxyRevolver.Revolver() also has a couple of parameters you can set in order to configure it. Here's a list of them all:

parameter purpose
rotate_on_code A list of http response codes that should trigger a rotation of which proxy is used. Default: [429, 403]
rotate_not_on_code A list of http response codes that should trigger a rotation of which proxy is used if the returned code is not on the list. Default: [429, 403]
max_rotates The maximum proxy rotations that should be tried before giving up on rotating proxies and just returning whatever was retrieved, regardless of response code. Default: 6
min_anon_level Specifies the minimum anonymous level proxies used must meet. Level 0: transparent (server knows your ip), Level 1: Anonymous (server know you're using a proxy, but doesn't know your real ip.), Level 2: HIA/Elite (Server doesn't know your true ip or know that you are using a proxy). Default: 0
test Specifies if proxies should be tested for if they leak your ip and claim to be anonymous.

Metadata

Release files for FreeProxyRevolver 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FreeProxyRevolver 0.1.1
File Size Uploaded Provenance Actions
FreeProxyRevolver-0.1.1.tar.gz 3.8 kB Without provenance Details for FreeProxyRevolver-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FreeProxyRevolver 0.1.1
File Interpreter ABI Platform Actions
FreeProxyRevolver-0.1.1-py3-none-any.whl Python 3 none any Details for FreeProxyRevolver-0.1.1-py3-none-any.whl

Total release size: 7.9 kB

Release files / FreeProxyRevolver-0.1.1.tar.gz

Download URL FreeProxyRevolver-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
79d6938907bc282e038567a63218ef8b58c969d72a0e5370e3a344b14b0a0614
BLAKE2b-256 checksum
How to use checksums
ad91c0909fe6457c67ec03cb0f4d3aea21acffcf0424411d77ba3d3c70559eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.1

Release files / FreeProxyRevolver-0.1.1-py3-none-any.whl

Download URL FreeProxyRevolver-0.1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46ec69d7827fc9d1a547f286dedaf0c765889404b9009e325301623db996f87c
BLAKE2b-256 checksum
How to use checksums
564b44a1c3a7a16176c6b7e713012add7ad252612f77bf7b3335bcd3adc1e361
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.1

Security for FreeProxyRevolver 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page