推荐学习书目
› 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
yeuet
V2EX  ›  Python

如何用 Python 模拟登陆 V2EX?

  •  
  •   yeuet · May 4, 2015 · 5630 views
    This topic created in 4162 days ago, the information mentioned may be changed or developed.
    提示 requests.exceptions.Connecti onError: ('Connection aborted.', ResponseNotReady())
    5 replies  •  2017-02-27 15:34:38 +08:00
    cizixs
        1
    cizixs  
       May 4, 2015   ❤️ 3
    之前写过的自动登录 V2EX,获取每天登录奖励的脚本。

    https://gist.github.com/cizixs/e7181cdf9eb0d8e996b3

    希望对你有帮助!
    nettest
        2
    nettest  
       May 4, 2015 via iPhone
    直接用cookie不就行了,自己用的话搞那么麻烦干啥。
    loading
        3
    loading  
       May 4, 2015 via Android
    cookie 大法确实简单方便!
    @nettest
    xvid73
        4
    xvid73  
       May 4, 2015   ❤️ 1
    AD: https://github.com/lord63/a_bunch_of_code/tree/master/v2ex

    模拟登录的话,抓包看看,记得加 UA 和 Referer,我是一直用 session 的。
    ZiLong
        5
    ZiLong  
       Feb 27, 2017
    @nettest cokie 不会过期么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:10 · PVG 23:10 · LAX 08:10 · JFK 11:10
    ♥ Do have faith in what you're doing.