Skip to main content

Automatic proxy rotation for anonymous web requests.

Project description

Protatoquests (Proxy Rotation Requests)

PyPI Downloads Py versions

Automatic proxy rotation for anonymous web requests. The intended usage is to by-pass server's IP blocking by using a pool of free proxies to perform requests and web scraping. It's important to note that using anonymous proxies is risky, unsafe and will cause credentials leaks.

Installation

pip install protatoquests

Usage

import requests
import protatoquests

# this one will contact the server directly
response = requests.get("https://google.com")
# this one will contact the server using an anonymous proxy 
response = protatoquests.get("https://google.com")

Considerations

The library gets socks5 free proxies from https://advanced.name/freeproxy. It tries to use the first proxy available, if it fails, it tries the next one; therefore the latency will be higher than using a single proxy or no proxy at all.

Contributing

Any contribution is welcome! Please open a PR with your changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protatoquests-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

protatoquests-1.0.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page