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

请问 python 如何模拟以 JS 提交登陆的后台?

  •  
  •   wangmingbuhaoqi · Jun 29, 2015 · 4426 views
    This topic created in 4034 days ago, the information mentioned may be changed or developed.
    刚看了一些python爬虫文章,
    试着写了试试,如果是form表单提交能登录后台抓取一些东西,
    如果是js提交的?就不行了。
    请问应该怎么来处理js的登录请求?
    realityone
        1
    realityone  
       Jun 29, 2015
    js 提交归根到底还是 http 啊
    要是中间有加密过程特别复杂的话用 nodejs 可以模拟下
    powergx
        2
    powergx  
       Jun 29, 2015
    pyv8 最近我也在烦 迅雷的登陆
    wangmingbuhaoqi
        3
    wangmingbuhaoqi  
    OP
       Jun 29, 2015
    弄了一下午,结果通过requests模块,以cookie登录,可以正常使用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1042 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
    ♥ Do have faith in what you're doing.