可以从blogger api或gdata api获取以下博客的列表吗?

时间:2021-08-13 18:51:16

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.

我一直在寻找解决方案,但我可以获得对配置文件API的响应的唯一格式是HTML。这对于获取类似博客阅读列表列表的内容来说并不是非常可靠。

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.

我已经能够使用我的身份验证令牌获取默认/博客,并以JSON格式返回结果。然后我用它来获取作者的blog-id ..然后是...配置文件(其中包含阅读列表)。但是,当我在URI的末尾请求JSON(即?v = 2 / alt = json)时,它仍然返回HTML。

Is there a better way to get this done?

有没有更好的方法来完成这项工作?

1 个解决方案

#1


1  

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.'

不 - 不是真的(继续阅读)。是,如果您解析HTML。它没有在API中公开XML / JSON或其他方式。您可以获取HTML,如果您有信心进行屏幕抓取并感觉所有者不会重新排列页面(可能会从显示中省略),那么“去吧”。

#1


1  

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.'

不 - 不是真的(继续阅读)。是,如果您解析HTML。它没有在API中公开XML / JSON或其他方式。您可以获取HTML,如果您有信心进行屏幕抓取并感觉所有者不会重新排列页面(可能会从显示中省略),那么“去吧”。