Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

get a browser user_agent by random

Project description

简介

browser_useragent 库共包含246个浏览器请求头

参考fake_useragent库,对其进行了简化,解决网络不好文件下载失败的问题

chrome, opera, firefox, safari, internetexplorer

来源: fake_useragent: http://d2g6u4gh6d9rq0.cloudfront.net/browsers/fake_useragent_0.1.9.json

快速开始

安装

pip install browser_useragent

使用

>>from browser_useragent import get_user_agent

>>get_user_agent()

>>'Mozilla/5.0 (X11; OpenBSD amd64; rv:28.0) Gecko/20100101 Firefox/28.0'

Project details


Release history Release notifications

Download files

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

Files for browser-useragent, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size browser_useragent-0.0.1-py3.6.egg (1.0 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size browser_useragent-0.0.1-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size browser_useragent-0.0.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page