标签:web code apple res safari class import url stat
418:
被反爬程序识别,添加headers
1 import requests 2 3 headers={‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36‘} 4 5 res = requests.get(url,headers=headers)
标签:web code apple res safari class import url stat
原文地址:https://www.cnblogs.com/jiangstudy/p/13182991.html