如何使用 Python 进行 FQL 查询?
我这样做:
str('https://api.facebook.com/method/fql.query?query=') + query
那么应该查询并获取Python中转换的JSON数据,但是怎么做呢?
I do:
str('https://api.facebook.com/method/fql.query?query=') + query
then this should be queried and get the JSON data converted in Python, but how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用类似 urllib 或 pycurl 进行http请求,然后使用json 库来解码接收到的数据。我相信每个模块的文档都非常详细,所以应该足够了。
You should use something like urllib or pycurl to do http request and then use json library to decode received data. I believe documentation on each module is very detailed, so it should be sufficient.