aiohttp-ip-rotator
An asynchronous alternative to the requests-ip-rotator (https://github.com/Ge0rg3/requests-ip-rotator) library based on aiohttp, completely copying its functionality
Example
from asyncio import get_event_loop
from aiohttp_ip_rotator import RotatingClientSession
async def main():
session = RotatingClientSession("https://api.ipify.org", "aws access key id", "aws access key secret")
await session.start()
for i in range(5):
response = await session.get("https://api.ipify.org")
print(f"Your ip: {await response.text()}")
await session.close()
if __name__ == "__main__":
get_event_loop().run_until_complete(main())
Example 2
from asyncio import get_event_loop
from aiohttp_ip_rotator import RotatingClientSession
async def main():
async with RotatingClientSession(
"https://api.ipify.org",
"aws access key id",
"aws access key secret"
) as session:
for i in range(5):
response = await session.get("https://api.ipify.org")
print(f"Your ip: {await response.text()}")
if __name__ == "__main__":
get_event_loop().run_until_complete(main())
Metadata
Release files for aiohttp-ip-rotator 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 | Actions |
|---|---|---|---|---|
| aiohttp-ip-rotator-1.0.tar.gz | 4.1 kB | Without provenance | Details for aiohttp-ip-rotator-1.0.tar.gz |
Release files / aiohttp-ip-rotator-1.0.tar.gz
| Download URL | aiohttp-ip-rotator-1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5de03738117e484748755d07a3b96dc54bc72a1a3b0d92941037c5f3c19d125b
|
|
BLAKE2b-256 checksum How to use checksums |
131759ce2b5fab9142e9712508f5c445965b5b618b829f62a597f4f276785eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for aiohttp-ip-rotator 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.