Async IP Rotator is an IP obfuscating library that integrates with AioHttp. The library proxies your requests through AWS gateways, leveraging their pool of IP addresses. This allows you to send request from different IPs and bypass IP-based rate-limits of web services.
The library is designed to provide an async alternative to the amazing requests-ip-rotator.
Installation
To install Async IP Rotator, simply run:
pip3 install async-ip-rotator
Usage
import asyncio
import logging
from async_ip_rotator import IpRotator, ClientSession
# set logging to get information about API creation and deletion
logging.basicConfig(level=logging.INFO)
async def main():
ip_rotator = IpRotator(
target='https://ipinfo.io', # target website
aws_key_id='your_aws_key_id', # AWS key id
aws_key_secret='your_aws_key_secret', # AWS key secret
regions=['eu-central-1'], # regions (see IpRotator.py)
# regions=IpRotator.DEFAULT_REGIONS,
# regions=IpRotator.EXTRA_REGIONS,
# regions=IpRotator.ALL_REGIONS,
)
# we can optionally delete all existing Async IP Rotator gateways
# to make sure there are no leftovers from previous failed teardowns
await ip_rotator.clear_existing_apis()
async with ip_rotator as ip_rotator:
async with ClientSession(ip_rotator) as sess:
for _ in range(4):
res = await sess.get('https://ipinfo.io/json')
text = await res.text()
print(text)
if __name__ == '__main__':
asyncio.run(main())
Creadit
The library is inspired by Ge0rg3's requests-ip-rotator, which is based on IPRotate_Burp_Extension developed by RhinoSecurityLabs.
Metadata
Release files for async-ip-rotator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| async-ip-rotator-0.1.0.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| async_ip_rotator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / async-ip-rotator-0.1.0.tar.gz
| Download URL | async-ip-rotator-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8d067590d76819a5a311efaa9d6732c2eaf3bab2120d602ee4514188211213d
|
|
BLAKE2b-256 checksum How to use checksums |
125864e836ff1fef2bff0b104381a9cfa54878c8d911d6e09e3679aba14eea0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / async_ip_rotator-0.1.0-py3-none-any.whl
| Download URL | async_ip_rotator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74291e8dbcca3c6661c1102cfd5169f9e7200983f25ea5428c58c79b19397a9f
|
|
BLAKE2b-256 checksum How to use checksums |
0a527d0abdbf126a6b32b367ba3918f83ca392ff0d6e0f6f1a74e6c0f3ca4acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for async-ip-rotator 0.1.0
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.