可以从 blogger api 或 gdata api 获取以下博客的列表吗?
我一直在寻找解决方案,但我可以获得配置文件 API 响应的唯一格式是 HTML。对于获取诸如博主阅读列表之类的内容来说,这并不是很可靠。
我已经能够使用我的身份验证令牌获取默认/博客,并以 JSON 形式返回结果。然后我用它来获取作者的博客 ID .. 然后 .. 个人资料(其中有阅读列表)。但是,当我在 URI 末尾以 JSON(即?v=2/alt=json)请求它时,它仍然返回 HTML。
有更好的方法来完成这件事吗?
I have been looking for a solution, but the only format that I can get a response to the profile API is in HTML. That is not very reliable for getting something like a list of the blogger's reading list.
I have been able to get the default/blogs with my auth token and have the result returned in JSON. I then used that to get the author's blog-id .. and then .. the profile (which has the reading list). Howver, when I request it in JSON (i.e., ?v=2/alt=json) at the end of the URI, it still returns HTML.
Is there a better way to get this done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不 - 不是(继续阅读)。是的,如果你解析 HTML。它不会在 XML/JSON 或其他 API 中公开。您可以获得 HTML,如果您对进行屏幕抓取有信心并且认为所有者不会重新排列页面(可能会从显示中忽略它),那么“就去做吧”。
No - not really (keep reading). Yes if you parse HTML. It is not exposed in the API for XML/JSON or otherwise. You can get the HTML and if you are confident in doing the screen scraping and feel that the owner will not rearrange one's page (possibly omitting it from display), then 'go for it.'