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

爬虫,使用 chrome, requests, postman 打开同一个接口,分别返回 json, html,无

  •  
  •   PulpFunction · Oct 12, 2018 · 2432 views
    This topic created in 2755 days ago, the information mentioned may be changed or developed.
    接口正常返回应该是 JSON

    我把浏览器里的 cookie 啥的都加上了
    PulpFunction
        1
    PulpFunction  
    OP
       Oct 12, 2018
    直接浏览器打开接口返回 json ( get 方式)
    提示接口服务器错误

    requests 返回一段 html,看起来没有被封 其中包含<%%>( get,post 都试过,返回都是 html )

    postman 返回无
    PulpFunction
        2
    PulpFunction  
    OP
       Oct 12, 2018
    搞定了……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2731 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 15:52 · PVG 23:52 · LAX 08:52 · JFK 11:52
    ♥ Do have faith in what you're doing.