链接是下面这个
https://www.pexels.com/zh-cn/...
apizza上面测试正常返回网页
就是代码跑就被检测。
import requests
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Accept-Language': 'zh-CN,zh;q=0.9'
}
url = "https://www.pexels.com/zh-cn/search/girl/?format=html&seed=&page=1&type="
with requests.get(url,headers=headers) as resp:
print(resp.text)