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

请问如何解决: Python requests 获取不到信息

  •  
  •   hititan · Jul 7, 2017 · 3796 views
    This topic created in 3370 days ago, the information mentioned may be changed or developed.

    小弟不才,请大佬给与指点一下: 浏览器直接访问: https://yunbi.com//api/v2/tickers.json 可以得到数据 h=requests.get('https://yunbi.com//api/v2/tickers.json') print h.text

    却无法看到数据。 请问该如何获取里面的数据呢? 感谢

    6 replies  •  2017-07-08 11:11:59 +08:00
    codeforlife
        1
    codeforlife  
       Jul 7, 2017
    你再试试吧。我怎么试了完全没问题
    gimp
        2
    gimp  
       Jul 7, 2017
    没问题 +1
    newbie269
        3
    newbie269  
       Jul 7, 2017 via iPhone
    没问题+2
    Maplewind
        4
    Maplewind  
       Jul 7, 2017 via iPhone
    是否是 requests 库版本问题...?
    annielong
        5
    annielong  
       Jul 7, 2017
    没问题+3,
    OldPanda
        6
    OldPanda  
       Jul 8, 2017
    没问题+4

    Python 2.7.13
    Requests 2.13.0
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:46 · PVG 16:46 · LAX 01:46 · JFK 04:46
    ♥ Do have faith in what you're doing.