V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-05-04 12:59:43 +08:00 · 4530 次点击
    这是一个创建于 3282 天前的主题,其中的信息可能已经有所发展或是发生改变。
    提示 requests.exceptions.Connecti onError: ('Connection aborted.', ResponseNotReady())
    5 条回复    2017-02-27 15:34:38 +08:00
    cizixs
        1
    cizixs  
       2015-05-04 14:16:38 +08:00   ❤️ 3
    之前写过的自动登录 V2EX,获取每天登录奖励的脚本。

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

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

    模拟登录的话,抓包看看,记得加 UA 和 Referer,我是一直用 session 的。
    ZiLong
        5
    ZiLong  
       2017-02-27 15:34:38 +08:00
    @nettest cokie 不会过期么
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:22 · PVG 16:22 · LAX 01:22 · JFK 04:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.