V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
revotu
V2EX  ›  Python

Python 如何模拟登陆知乎(目前知乎有倒立文字的验证码)

  •  
  •   revotu · Aug 8, 2017 · 5652 views
    This topic created in 3185 days ago, the information mentioned may be changed or developed.
    好久前写过用 Python 模拟登陆知乎的脚本,但是最近发现知乎加了倒立文字的验证码

    目前有什么好思路 可以解决这个倒立文字的验证码问题么?
    11 replies    2017-08-09 15:14:00 +08:00
    Jackhuang
        1
    Jackhuang  
       Aug 8, 2017   ❤️ 1
    xuezher
        2
    xuezher  
       Aug 8, 2017
    超级鹰、uu 打码、打码兔。。。各种第三方打码平台,帮你解决
    leavic
        3
    leavic  
       Aug 8, 2017
    用 selenium 先手工登录,然后把 cookies 传递给 requests。
    goofool
        4
    goofool  
       Aug 8, 2017
    原来的 4 位验证码还可以用
    ivechan
        5
    ivechan  
       Aug 8, 2017
    验证码无非就两种方案: 1. 识别(人工智能) 2.人力(人工的人工智能)
    laoyuan
        6
    laoyuan  
       Aug 8, 2017
    3.机械,用机械设备模拟人工。
    fengzixu
        7
    fengzixu  
       Aug 8, 2017
    你们这些年轻人,总想搞个大新闻
    CEBBCAT
        8
    CEBBCAT  
       Aug 8, 2017 via Android   ❤️ 3
    @fengzixu 您这句话和楼主的提问有什么关系?
    OpenJerry
        9
    OpenJerry  
       Aug 8, 2017
    我用最笨的方法,直接复制 chrome 的 cookie
    shawlib
        10
    shawlib  
       Aug 8, 2017
    1.知乎的验证码出现的概率与你的异常操作成正比,一般情况不会轻易弹验证码。
    2.验证码解决方案只有两种 a.自动验证(直接刚正面) b.避免(打不过躲得过)
    3.爬虫本身是一场博弈,不要给别人的服务器造成过高的压力,该 sleep 就要 sleep
    4.解决方案 a.Python 模拟登录库:github/fuck-login b.Python 知乎非官方 oauth:github/zhihu-oauth
    revotu
        11
    revotu  
    OP
       Aug 9, 2017
    @leavic
    @OpenJerry
    没想到还有这招 多谢提供思路
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    ♥ Do have faith in what you're doing.