Skip to main content

Real User Agent Generator

Real User Agent With Auto Sync in Requests Module.

Installation

pip install real-useragent

Usage

Random User Agent on Any Device with any Browser Type (Recommended)

import requests
import real_useragent

s = requests.Session()
print(s.headers['User-Agent'])

# Without a session
resp = requests.get('https://httpbin.org/user-agent')
print(resp.json()['user-agent'])
  • UserAgent
from real_useragent import UserAgent
ua = UserAgent()
random_useragent = ua.random_useragent()

Random User Agent from Browser Name:

from real_useragent import UserAgent
ua = UserAgent()
chrome_useragent = ua.chrome_useragent()
firefox_useragent = ua.firefox_useragent()
desktop_useragent = ua.desktop_useragent()
mobile_useragent = ua.mobile_useragent()
safari_useragent = ua.safari_useragent()

Random User Agent from Device Type and Browser :

from real_useragent import UserAgent
ua = UserAgent()
mobile_firefox_ua = ua.get_useragent(mode="mobile", browser="firefox")
desktop_chrome_ua = ua.get_useragent(mode="desktop", browser="chrome")

Random User Agent for Device Type (mode)

from real_useragent import UserAgent
ua = UserAgent()
# mode : [desktop or mobile]
desktop_useragent = ua.get_useragent(mode="desktop")
mobile_useragent = ua.get_useragent(mode="mobile")
  • Desktop
from real_useragent import UserAgent
ua = UserAgent()
desktop_firefox_useragent = ua.desktop_firefox_useragent()
desktop_chrome_useragent = ua.desktop_chrome_useragent()
desktop_linux_useragent = ua.desktop_linux_useragent()
desktop_mac_useragent = ua.desktop_mac_useragent()
  • Mobile :
from real_useragent import UserAgent
ua = UserAgent()
mobile_chrome_useragent = ua.mobile_chrome_useragent()
mobile_firefox_useragent = ua.mobile_firefox_useragent()
mobile_safari_useragent = ua.mobile_safari_useragent()

User Agents are Randomized Per-Session or Per-Request. Individual HTTP requests without a session will each have a random User-Agent selected from the list in desktop_useragent.txt or mobile_useragent.txt all files automatically updated every 8 hours.


Programmer : @Pymmdrza

Credit : Mmdrza.Com


Donate

Donate with Bitcoin: 1MMDRZA12xdBLD1P5AfEfvEMErp588vmF9

Metadata

Release files for real-useragent 1.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for real-useragent 1.1.6
File Size Uploaded Provenance Actions
real_useragent-1.1.6.tar.gz 8.5 kB Without provenance Details for real_useragent-1.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for real-useragent 1.1.6
File Interpreter ABI Platform Actions
real_useragent-1.1.6-py3-none-any.whl Python 3 none any Details for real_useragent-1.1.6-py3-none-any.whl

Total release size: 16.6 kB

Release files / real_useragent-1.1.6.tar.gz

Download URL real_useragent-1.1.6.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ff3c6b8489fad211c291d30d7c72d1d560c5cb8cb0ffbaf74ef866ad6c829b3d
BLAKE2b-256 checksum
How to use checksums
c8d47bc17e29918c89b47210af14548c00145de55e76afaf943dd0d5823ec6bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / real_useragent-1.1.6-py3-none-any.whl

Download URL real_useragent-1.1.6-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f39c7b033fd5c62de2ca323c5312d2392f24a6190cef2111141cc05621b3f10
BLAKE2b-256 checksum
How to use checksums
ae5c322ae2cce1946d5195bd281eb79227780393684993573146adfbed1180c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for real-useragent 1.1.6

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.

Release history Release notifications | RSS feed

This release

1.1.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page