BNDou / Auto_Check_In

每日自动签到集合 | 掌上飞车 | 夸克网盘 | 人人视频 | 脚本猫 | 恩山论坛 | 小米运动
231 stars 42 forks source link

脚本猫怎么获取cookie呀。浏览器F12获取一直报错 #47

Closed mem4tgo closed 3 months ago

mem4tgo commented 3 months ago

脚本猫怎么获取cookie呀。浏览器F12获取一直报错

mem4tgo commented 3 months ago

Traceback (most recent call last): File "/ql/data/scripts/renren/checkIn_ScriptCat.swap.py", line 125, in log += ScriptCat(cookie_ScriptCat[i]).main() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/ql/data/scripts/renren/checkIn_ScriptCat.swap.py", line 100, in main self.get_log() File "/ql/data/scripts/renren/checkIn_ScriptCat.swap.py", line 95, in get_log self.date = html.xpath('//p[3]/font//text()')[0]


IndexError: list index out of range
BNDou commented 3 months ago

@mem4tgo 抓取签到页面url的请求 https://bbs.tampermonkey.net.cn/plugin.php?id=dsu_paulsign:sign 把这个请求的cookie做环境变量试试

mem4tgo commented 3 months ago

@mem4tgo 抓取签到页面url的请求 https://bbs.tampermonkey.net.cn/plugin.php?id=dsu_paulsign:sign 把这个请求的cookie做环境变量试试

Traceback (most recent call last): File "/ql/data/scripts/renren/checkIn_ScriptCat.py", line 125, in log += ScriptCat(cookie_ScriptCat[i]).main() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/ql/data/scripts/renren/checkIn_ScriptCat.py", line 100, in main self.get_log() File "/ql/data/scripts/renren/checkIn_ScriptCat.py", line 95, in get_log self.date = html.xpath('//p[3]/font//text()')[0]


IndexError: list index out of range
mem4tgo commented 3 months ago

还是不行

BNDou commented 3 months ago

@mem4tgo 方便q或v吗,我需要登录你的号试试

BNDou commented 3 months ago

@mem4tgo 我知道原因了,一定要抓取签到请求,今天已经签过就没法抓了,明天你试试,url是

https://bbs.tampermonkey.net.cn/plugin.php?id=dsu_paulsign:sign

问号后面的参数也是要有的,把这个请求的cookie做环境变量试试。 刚刚我筛去了无用的cookie,也就是只需要这俩个值就能签到

B6hk_2132_saltkey=xxxx; B6hk_2132_auth=xxxx;