代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
# 配置域名
domain = {
}
# 文档链接请求头
HEADER_FOR_LINK = {
"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",
"Cache-Control": "max-age=0",
"Connection": "keep-alive",
"Cookie":"viewedPg=7779a82b482fb4daa58d4b2e%3D1%7C0; wkview_gotodaily_tip=1; murmur=undefined--Win32; BIDUPSID=3D0F457626A330EB960A869591772677; PSTM=1574298536; BAIDUID=3D0F457626A330EB52D18E61AB8B40F0:FG=1; H_WISE_SIDS=141555_144017_144158_142113_141749_144239_143858_142507_143396_142207_140842_142019_139047_141745_143161_142510_143448_142780_131862_131246_142909_137745_138165_138883_141941_127969_140065_144284_140593_143057_141808_140351_138425_143469_131423_144289_144004_107319_138595_139884_144112_143478_142911_140368_138662_142275_110085; _click_param_pc_rec_doc_2017_testid=4; MCITY=-58%3A; Hm_lvt_d8bfb560f8d03bbefc9bdecafc4a4bf6=1585815448,1586767235; BDUSS=TJRaDlYVEN6eHItaUN6VW9GdzJPTFk5UWp2NHhSSWtkazlVNDJtYTc1ME90cnRlRVFBQUFBJCQAAAAAAAAAAAEAAADZySqqyP3JtbTzxNbM7PPDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4plF4OKZReT; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; H_PS_PSSID=31262_1450_21078_31341_30902_31229_30824_31085_26350_31163; delPer=0; PSINO=2",
"Host": "wenku.baidu.com",
"Referer": "https://wenku.baidu.com/ndcore/browse/sub?isBus=1&isPus=-1&isChild=&isType=0",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
}
# 配置文档内容请求头
HEADER_FOR_CON = {
"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",
"Cache-Control": "max-age=0",
"Connection": "keep-alive",
"Host": "wkbjcloudbos.bdimg.com",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。