Skip to main content

Execute HTTPS requests to a server using anonymous proxies.

Project description

requests-anon

Execute HTTPS requests to a server using anonymous proxies. The intended usage is to by-pass server's IP Blocking while scraping data from API or webpages. It's important to note that using anonymous proxies is risky, unsafe and will cause credentials leaks.

Installation

pip install requests-anon

Usage

import requests
from requests_anon import anon_request

# this one will contact the server directly
response = requests.get("https://google.com")
# this one will contact the server using an anonymous proxy 
response = anon_request("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

requests_anon-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

requests_anon-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file requests_anon-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for requests_anon-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ff7d5bf3b6ad1d654a02d130963fd4ea800c74b9555f975abd51aec32afc028
MD5 087f03d5a2ed00d0961b3006b91a5bce
BLAKE2b-256 59c259c25f6e2df1a34602aecf026fb085b78e7ec91e58ab8db6759c37f2ac21

See more details on using hashes here.

File details

Details for the file requests_anon-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requests_anon-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b173cfd5855472ba5161640dfc7f6db9257fd7a14201366273f707fe56fc6c93
MD5 2e6609619ecf89dd485dc7fefc0112de
BLAKE2b-256 d71f30a4d62cb243e280dfde8fb8de8dadeb6f6459c00a7f8dc598415b39e575

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