Python库fake-useragent
参考github链接https://github.com/hellysmile/fake-useragent1.安装pip install fake-useragent2.使用案例2.1查看各浏览器的user-agent值from fake_useragent import UserAgentua = UserAgent()#chrome浏览器print(ua.chrom...