且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Python从RESTful服务获取JSON数据?

更新时间:2022-04-16 01:51:58

除非我没有指出要点,否则类似的事情应该起作用:

Something like this should work unless I'm missing the point:

import json
import urllib2
json.load(urllib2.urlopen("url"))