安装fake_useragent第三方库
pip install fake-useragent
from fake_useragent import UserAgent
ua = UserAgent()
for i in range(10):
# print(ua.random,"\n")
print(ua.chrome,"\n")
安装fake_useragent第三方库
pip install fake-useragent
from fake_useragent import UserAgent
ua = UserAgent()
for i in range(10):
# print(ua.random,"\n")
print(ua.chrome,"\n")
本文标题:设置随机 UA 伪装请求头
本文链接:https://www.haomeiwen.com/subject/vdprpqtx.html
网友评论