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

有大佬爬过灵通打单吗 菜菜菜菜菜鸟的疑惑

  •  
  •   dfadf55 · Dec 13, 2018 · 2087 views
    This topic created in 2708 days ago, the information mentioned may be changed or developed.
    7 replies    2018-12-15 03:20:46 +08:00
    wjm2038
        1
    wjm2038  
       Dec 14, 2018 via Android
    token 过期了? js 里面找一下这个 url 是怎么拼接的
    shiji
        2
    shiji  
       Dec 14, 2018
    我的猜测:
    试试 requests.post(..略.. ,data=json.dumps(da),....略)
    或者 换成 json=payload 替代 data
    shiji
        3
    shiji  
       Dec 14, 2018   ❤️ 1
    @shiji 更正 json=da
    dfadf55
        4
    dfadf55  
    OP
       Dec 14, 2018
    @shiji 老哥!!!!!!!!!!!!!怎么做到的 成功了耶 哈哈哈哈哈哈
    dfadf55
        5
    dfadf55  
    OP
       Dec 14, 2018
    @shiji 老哥这是什么原理呢?
    dfadf55
        6
    dfadf55  
    OP
       Dec 14, 2018
    @wjm2038 没有过期 是刚在浏览器上操作还热乎着就复制过来的 js 我不是很懂哇
    shiji
        7
    shiji  
       Dec 15, 2018
    @dfadf55 因为你这个 post 的是一段纯 json, 你原来的代码 post 是类似表单一样的数据。这两个不一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 07:50 · PVG 15:50 · LAX 00:50 · JFK 03:50
    ♥ Do have faith in what you're doing.