版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
from fake_useragent import UserAgent
ua = UserAgent()
useragent=ua.chrome#随机生成谷歌浏览器的useragent,想要各种浏览器的改chrome为randome
headers={
'User-Agent':useragent
}
from fake_useragent import UserAgent
ua = UserAgent()
useragent=ua.chrome#随机生成谷歌浏览器的useragent,想要各种浏览器的改chrome为randome
headers={
'User-Agent':useragent
}