[color=]import
[color=]requests
[color=]import
[color=]time
[color=]search_url
=
[color=]'https://xueshu.baidu.com/s?wd=
[color=]%E
[color=]8%A7
[color=]%86%
[color=]E9%A2
[color=]%91%
[color=]E6
[color=]%8F%8F%E
[color=]8%BF%B0&rsv_bp=0&tn=SE_baiduxueshu_c1gjeupa&rsv_spt=3&ie=utf-8&f=8&rsv_sug2=0&sc_f_para=sc_tasktype%3D%7BfirstSimpleSearch%7D'
[color=]headers
= {
[color=]'user-agent'
:
[color=]'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.46'
,
[color=]'cookie'
:
[color=]'BDUSS=np0bUdsQWtBWXdmN2NYWldLTkNBU3c5bkRjN35GY2JrbkhocUFzenMzc2ZHaTFrRVFBQUFBJCQAAAAAAAAAAAEAAAAFM3r2cXdmZ8qxtPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB-NBWQfjQVkY; BDUSS_BFESS=np0bUdsQWtBWXdmN2NYWldLTkNBU3c5bkRjN35GY2JrbkhocUFzenMzc2ZHaTFrRVFBQUFBJCQAAAAAAAAAAAEAAAAFM3r2cXdmZ8qxtPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB-NBWQfjQVkY; BAIDU_WISE_UID=wapp_1678505642304_564; BAIDUID=65F895C23BF832A9420E4AEFC67B4BAB:FG=1; BAIDUID_BFESS=65F895C23BF832A9420E4AEFC67B4BAB:FG=1; BIDUPSID=65F895C23BF832A9420E4AEFC67B4BAB; PSTM=1683082612; ZFY=enLlhhs:BDuzXxvTN8DSru2QkC3DZ:AfVKtu4:BqvNQdS8:C; RT="z=1&dm=baidu.com&si=2a8178ae-479b-44e4-8225-02ee4de854a1&ss=lhh6onkb&sl=4&tt=6ix&bcn=https%3A
[color=]%2F%2F
[color=]fclog.baidu.com
[color=]%2F
[color=]log
[color=]%2F
[color=]weirwood
[color=]%3F
[color=]type%3Dperf&ld=7jk&nu=47cvtjw2&cl=295i&ul=2o27&hd=2o3e"; ariaDefaultTheme=undefined; delPer=0; BD_HOME=0; H_PS_PSSID=; Hm_lvt_f28578486a5410f35e6fbd0da5361e5f=1683769241,1683862430; Hm_lpvt_f28578486a5410f35e6fbd0da5361e5f=1683862430; BDRCVFR[w2jhEs_Zudc]=mbxnW11j9Dfmh7GuZR8mvqV; BD_CK_SAM=1; PSINO=1; BDSVRTM=372'
,
[color=]'referer'
:
[color=]'https://xueshu.baidu.com/'
,
[color=]'Host'
:
[color=]'xueshu.baidu.com'
,
}
[color=]res
=
[color=]requests
.
[color=]get
(
[color=]url
=
[color=]search_url
,
[color=]headers
=
[color=]headers
)
[color=]print
[color=](
[color=]res
[color=].
[color=]text
[color=])
Referer,Cookie 都加上了,系统是如何识别出来并返回给我空内容的呢?
如有大神,不胜感激!