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

  1. 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.
  2. The library API is intended as a drop-in replacement for the requests library, although not all the methods are implemented.

Contributing

Contributions to the GitHub repository are 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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

protatoquests-1.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file protatoquests-1.0.2.tar.gz.

File metadata

  • Download URL: protatoquests-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for protatoquests-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1b9628742a30f6d0955b0e45ec3ac99e676324a5943c75b6d93be61c1ce73692
MD5 4fcc5375f9ff77077b0d6f5752d53e90
BLAKE2b-256 f04b6d6849c891c4f57cc2bcbf9f4ffa8d065b90c037df06080b40c7e98b4095

See more details on using hashes here.

File details

Details for the file protatoquests-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for protatoquests-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a263ee4401301803cba6e8255e2a810f5ce21ae6d84855a33fb4536ff065a30a
MD5 7081b18bc5ad5f63590e51f24b9b9e63
BLAKE2b-256 da68202621a3db28a02dca5843335b5af0d952b72dac0ffd78f7586fe0442526

See more details on using hashes here.

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