fake-useragent
该插件用来随机生成请求头中的user-agent
https://github.com/hellysmile/fake-useragent
安装
pip3 install fake-useragent
使用
from fake_useragent import UserAgent
ua=UserAgent(verify_ssl=False)
print(ua.random)
标签:插件,fake,头中,UserAgent,useragent,ua
来源: https://www.cnblogs.com/baohanblog/p/12686215.html