静态资源加载
静态资源给了请求头和url即可
动态资源加载
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
}
url = "https://www.xinpianchang.com/api/xpc/comments/article/v2?article_id=12763338"
r = request("GET", url, headers=headers)
print(r.text)