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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

real_useragent-1.1.2.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

real_useragent-1.1.2-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file real_useragent-1.1.2.tar.gz.

File metadata

  • Download URL: real_useragent-1.1.2.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for real_useragent-1.1.2.tar.gz
Algorithm Hash digest
SHA256 0b1fd50059cc425daee48d21f57dde1eee9b6ed52f3f1a37d49d11e77ea7f703
MD5 97dcbcf69160db0d854492445cad0820
BLAKE2b-256 95d163af3f5860d34ab9774ffe21f82a869db9774a7f80e7b746dcdf4cbd9a05

See more details on using hashes here.

File details

Details for the file real_useragent-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: real_useragent-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for real_useragent-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d7db123d2d08a4e36c48462555569ed892728865ed29a4853badb41b1d8ccee
MD5 6edd933f145b92162ad4c1a7c025d506
BLAKE2b-256 7eddae4902d9d76e950f74747dcaeef847d26d199dc91ed460ee1d46be0e1e70

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page