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 hashes)

Uploaded Source

Built Distribution

requests_anon-0.1.1-py3-none-any.whl (2.9 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