ludoux / ngapost2md

艾泽拉斯国家地理论坛/NGA玩家社区/NGA单帖爬虫/牛国安一键存贴,不怕冲水
MIT License
102 stars 9 forks source link

cookie里添加guestJs=有效期内unix时间戳 #36

Closed crella6 closed 2 years ago

crella6 commented 2 years ago

用curl.exe测试,cookie设置Uid和Cid访问晴风村板块帖子(无登录要求)会先弹出“访客不能直接访问”网页(此处cookie设置了lastvisit),后面浏览器重定向至帖子详情页,观察发现cookie设置了guestJs=lastvisit,guestJs是unix时间戳值且有时效限制

未使用这个python脚本测试

ludoux commented 2 years ago

谢谢告知,尽快修复

ludoux commented 2 years ago

脚本中相关代码使用 allow_redirects=False 参数访问nga页面,未出现跳转情况(可能是访问了lite=js所以不跳转?),脚本可以正常下载,就先不修复啦