Skip to main content

fake pc or app browser useragent, anti useragent, and other awesome tools

Project description

anti-useragent

info: fake chrome, firefox, opera browser header anti useragent

Features

  • more browser up to date
  • more randomize ruler
  • grabs up to date useragent from useragentstring.com

Installation

pip install anti-useragent

Usage

from anti_useragent import UserAgent
ua = UserAgent()

ua.opera
# Opera/9.80 (X11; Linux i686; U; ru) Presto/2.8.131 Version/11.11
ua.chrome
# Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36
ua['chrome']
# Mozilla/5.0 (Windows NT 5.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.2.3576.5 Safari/537.36
ua.firefox
# Mozilla/5.0 (Windows NT 5.1; WOW64; rv:47.0) Gecko/20100101 Firefox/45.0
ua['firefox']
# Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:49.0) Gecko/20100101 Firefox/31.0
ua.android
# Mozilla/5.0 (Linux; Android 7.5.2; M571C Build/LMY47D) AppleWebKit/666.7 (KHTML, like Gecko) Chrome/72.7.7953.78 Mobile Safari/666.7
ua.iphone
# Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_1 like Mac OS X) AppleWebKit/349.56 (KHTML, like Gecko) Mobile/J9UMJN baiduboxapp/0_17.7.6.6_enohpi_8957_628/2.01_4C2%258enohPi/1099a/P0SJ2RX4DXJT3RW906040KVOSH2E76RJUNHVIJUPCJQCZMEM2GL/1
ua.wechat
# Mozilla/5.0 (Linux; Android 10.9.8; MI 5 Build/NRD90M) AppleWebKit/536.93 (KHTML, like Gecko) Chrome/81.7.8549.56 Mobile Safari/536.93

# and the best one, random via real world browser usage statistic
ua.random
# Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.3.8610.5 Safari/537.36

Supported platform

browser/platfom windows mac linux iphone android
chrome
firefox
opera
wechat
baidu
uc

If You want to specify the platform just:

from anti_useragent import UserAgent
ua = UserAgent(platform='mac')

If You want to specify the browser max version or min version just:

from anti_useragent import UserAgent
ua = UserAgent(max_version=90)

ua = UserAgent(min_version=50)

If You want to specify the enable logger just:

from anti_useragent import UserAgent
ua = UserAgent(logger=True)

# the default install loguru
try:
    from loguru import logger
except:
    install("loguru")
    from loguru import logger

Make sure that You using latest version

pip install -U anti-useragent

Check version via python console:

import anti_useragent

print(anti_useragent.VERSION)

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

anti_useragent-1.0.6.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

anti_useragent-1.0.6-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file anti_useragent-1.0.6.tar.gz.

File metadata

  • Download URL: anti_useragent-1.0.6.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for anti_useragent-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9bd034cbeaa24f5b2a6c020692fea0d31b1aacf5186c85108a471c2d84fbe26e
MD5 8b86331e329395f4facef8327ad5e45e
BLAKE2b-256 e85ad61da3ba77e664609b11e844352e249d2ed6e34840462cfd076675ea9014

See more details on using hashes here.

File details

Details for the file anti_useragent-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: anti_useragent-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for anti_useragent-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca1c67b5c534ffd50f3718d60939a89df63355b369c700a54d7c024c813f7fa
MD5 670bd8034ea04b100687ab0c2fdc07c8
BLAKE2b-256 1f98c371cec75b91ae283453dd0a019819b91bba62e0fba7853b6436fb0e8086

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page