V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
autoname
V2EX  ›  问与答

请教爬虫问题, discuz 论坛的验证老是失败,是什么情况知道的老哥来说说呀

  •  
  •   autoname · 2020-07-11 01:14:33 +08:00 · 669 次点击
    这是一个创建于 1388 天前的主题,其中的信息可能已经有所发展或是发生改变。

    验证码提取= https://www.discuz.net/misc.php?mod=seccode&action=update&idhash=cS0&0.0423275371233075&modid=undefined

    验证码直链 =https://www.discuz.net/misc.php?mod=seccode&update=49424&idhash=cS0

    第一次请求 去拿 update,

    第二次请求 组合直链,

    我见百度上面都是这样的,写爬虫自动回复的

    但是为啥我老是 验证码错误,真的是奇怪了,cookie 什么的 都和浏览器发的没差,就是验证失败

    每爬一个页面我还都特意的 保存下 cookie 的,

    从登录页,以及帖子页,以及这个提取 update 的 js 页 全部都保存过

    autoname
        1
    autoname  
    OP
       2020-07-11 09:43:11 +08:00
    人呢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2846 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:29 · PVG 08:29 · LAX 17:29 · JFK 20:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.