Python Requests – Anonymous Session
Randomizes the user agent, and applies the default headers and cipher suite found in that browser.
Installation
pip install python-requests-anonymous-session
Usage
Note: AnonymousSession inherits from requests.Session.
Simple
from python_requests_anonymous_session import AnonymousSession
session = AnonymousSession()
Advanced
Choose wether you want to use mobile/desktop broswer profiles
session = AnonymousSession(browser={
'desktop': False, # default True,
'mobile': True, # default True,
})
Slightly More Advanced
Choose which user-agent you want. If the user-agent is in found in our database the correct default headers
and cipher suite will be applied.
session = AnonymousSession(browser={
'custom': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
})
Credits
- VeNoMouS/cloudscraper for the browsers.json
file and the original
UserAgentandCipherSuiteAdapterimplementations.
Metadata
Release files for python-requests-anonymous-session 1.0.2
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 |
|---|---|---|---|---|
| python-requests-anonymous-session-1.0.2.tar.gz | 83.2 kB | Without provenance | Details for python-requests-anonymous-session-1.0.2.tar.gz |
Release files / python-requests-anonymous-session-1.0.2.tar.gz
| Download URL | python-requests-anonymous-session-1.0.2.tar.gz |
|---|---|
| Size | 83.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a3f22e25c4736623bce63f1b9f8764e7c8dfb1f9e942027ba6953b22333afb2
|
|
BLAKE2b-256 checksum How to use checksums |
33438e1956fd291b4101cd513d17c12ed4876b7747be7f2547d03080fc3a01a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.9
|
Security for python-requests-anonymous-session 1.0.2
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.