yellowtail
V2EX  ›  问与答

写了一个爬虫爬看准网上的上市公司评分,遇到进入登陆界面拖动验证条报错问题

  •  
  •   yellowtail · Feb 27, 2020 · 1787 views
    This topic created in 2338 days ago, the information mentioned may be changed or developed.

    程序用的 selenium,检测到验证码页面会自动停止,然后手动输入验证码,

    问题是发现爬到一定数量以后会自动跳到登陆界面,本打算手动解决但是验证拖动完以后会报错,无法登陆

    求教解决方案

    2 replies    2020-02-27 12:42:02 +08:00
    woshipanghu
        1
    woshipanghu  
       Feb 27, 2020
    这个账号应该是被检测到了异常爬取了
    用短信平台批量注册一批账号 每个账号手动登陆一遍把 cookie 保存下来
    每次爬的时候切换不同的 cookie 去拿信息
    yellowtail
        2
    yellowtail  
    OP
       Feb 27, 2020
    @woshipanghu 忘了说了,运行的时候一直是没有登陆的 而且跳到登陆界面的时候有一段时间是用不了的... 老白也不会用 cookie...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3790 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:23 · PVG 18:23 · LAX 03:23 · JFK 06:23
    ♥ Do have faith in what you're doing.