The automatic proxy rotation module¶
rotator¶
- class saferequests.proxyrotation.rotator.ProxyRotator(*, anonymity=None, cachedir=None, countryset=None, livecheck=False, maxshape=0, repository='asyncio', schedule=0.0, secure=True)¶
Bases:
objectA class that automatically rotates proxy addresses for HTTP requests
It allows specifying various filters, such as anonymity level, connection security, ISO 3166-1 alpha-2 country code, and downloading from free public sources, while ensuring the sanity of any proxy address retrieved.
- rotate()¶
It rotates blocking the selected proxy address
- Return type:
None
- saferequests.proxyrotation.rotator.is_ipv4_address(address)¶
If a proxy address conforms to a IPv4 address
- Return type:
bool