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
yeuet
V2EX  ›  Python

如何用 Python 模拟登陆 V2EX?

  •  
  •   yeuet · May 4, 2015 · 5269 views
    This topic created in 4011 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   ·   Solana   ·   6138 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 02:19 · PVG 10:19 · LAX 19:19 · JFK 22:19
    ♥ Do have faith in what you're doing.