解决方法:
下载: https://fake-useragent.herokuapp.com/browsers/0.1.11 (墙)
并另存为:fake_useragent.json
def get_header():
location = os.getcwd() + '/fake_useragent.json'
ua = fake_useragent.UserAgent(path=location)
return ua.random
解决方法:
下载: https://fake-useragent.herokuapp.com/browsers/0.1.11 (墙)
并另存为:fake_useragent.json
def get_header():
location = os.getcwd() + '/fake_useragent.json'
ua = fake_useragent.UserAgent(path=location)
return ua.random