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