上传者: 42122838 
                                    |
                                    上传时间: 2022-04-03 08:30:08
                                    |
                                    文件大小: 29KB
                                    |
                                    文件类型: -
                                
                            
                                
                            
                                假用户代理
信息:
 最新的简单useragent伪造者与真实世界数据库
特征
抓住最新的useragent从
 通过对真实世界的统计数据进行随机化
安装
pip install fake-useragent
用法
from fake_useragent import UserAgent
ua = UserAgent ()
ua . ie
# Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US);
ua . msie
# Mozilla/5.0 (compatible; MSIE 10.0; Macintosh; Intel Mac OS X 10_7_3; Trident/6.0)'
ua [ 'Internet Explorer' ]
# Mozilla/5.0 (compatible; MSIE 8.0; Windows