Skip to main content

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


Download files

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

Source Distribution

browser_useragent-0.0.1.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distributions

browser_useragent-0.0.1-py3.6.egg (1.0 kB view hashes)

Uploaded Source

browser_useragent-0.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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