Skip to main content

Randomizes the user agent, along with default headers found with that browser as well as the cipher suite used.

Project description

Python Requests – Anonymous Session

Randomizes the user agent, and applies the default headers and cipher suite found in that browser.


pip install python-requests-anonymous-session


Note: AnonymousSession inherits from requests.Session.


from python_requests_anonymous_session import AnonymousSession

session = AnonymousSession()


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',


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

python-requests-anonymous-session-1.0.1.tar.gz (83.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page