V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2017-07-07 15:36:43 +08:00 · 2614 次点击
    这是一个创建于 2478 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    6 条回复    2017-07-08 11:11:59 +08:00
    codeforlife
        1
    codeforlife  
       2017-07-07 15:39:41 +08:00
    你再试试吧。我怎么试了完全没问题
    gimp
        2
    gimp  
       2017-07-07 16:07:00 +08:00
    没问题 +1
    willhunger
        3
    willhunger  
       2017-07-07 16:20:11 +08:00 via iPhone
    没问题+2
    Maplewind
        4
    Maplewind  
       2017-07-07 18:41:36 +08:00 via iPhone
    是否是 requests 库版本问题...?
    annielong
        5
    annielong  
       2017-07-07 19:30:22 +08:00
    没问题+3,
    OldPanda
        6
    OldPanda  
       2017-07-08 11:11:59 +08:00
    没问题+4

    Python 2.7.13
    Requests 2.13.0
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2767 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.