python - crawler 之 fake-useragent随机ua
目录1.安装fake-useragent2.获取各浏览器的fake-useragent3.fake-useragent案例1.安装fake-useragentpip install fake-useragent2.获取各浏览器的fake-useragentfrom fake_useragent import UserAgentua = UserAgent()#ie浏览器的user agentprint(ua.ie)#opera浏览器print...