代码拉取完成,页面将自动刷新
from copyheaders import headers_raw_to_dict
# 设置目标网站
domain = {
"target_url":"https://ac.qq.com/ComicView/index/id/541812/cid/14?fromPrev=1"
}
# 设置请求头
header = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-CN,zh;q=0.9",
"Cookie": "pgv_pvi=2899869696; pgv_pvid=5273601228; pac_uid=0_5d7a0fbddc83e; nav_userinfo_cookie=; ts_refer=www.baidu.com/link; ts_uid=3721001597; theme=dark; roastState=2; readLastRecord=%5B%5D; tvfe_boss_uuid=e21cb49235f1dca2; pgv_info=ssid=s7316987320; readRecord=%5B%5B541812%2C%22%E8%A5%BF%E8%A1%8C%E7%BA%AA%22%2C7%2C%22%E7%AC%AC1%E8%AF%9D%20%E9%BE%99%E4%B8%8E%E7%8B%BC%22%2C1%5D%5D; ts_last=ac.qq.com/ComicView/index/id/541812/cid/7",
"Host": "ac.qq.com",
"User-Agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。