如何从 Python 中查看 Tumblr 帖子的所有注释? [英] How can I see all notes of a Tumblr post from Python?

查看:28
本文介绍了如何从 Python 中查看 Tumblr 帖子的所有注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我查看以下 Tumblr 帖子:http://ronbarak.tumblr.com/post/40692813……
它(目前)有 292 个笔记.

我想使用 Python 脚本(例如,通过 urllib2、BeautifulSoup、simplejson 或 tumblr Api)获取所有上述注释.一些广泛的谷歌搜索没有产生任何与 Tumblr 中的笔记提取相关的项目.

Say I look at the following Tumblr post: http://ronbarak.tumblr.com/post/40692813…
It (currently) has 292 notes.

I'd like to get all the above notes using a Python script (e.g., via urllib2, BeautifulSoup, simplejson, or tumblr Api). Some extensive Googling did not produce any items relating to notes' extraction in Tumblr.

谁能为我指出正确的方向,让我能够做到这一点?

推荐答案

很遗憾看起来 Tumblr API 有一些限制(缺乏关于 Reblogs 的元信息,笔记限制为 50),所以你不能得到所有的笔记.

Unfortunately looks like the Tumblr API has some limitations (lacks of meta information about Reblogs, notes limited by 50), so you can't get all the notes.

也禁止根据服务条款进行页面抓取.

It is also forbidden to do page scraping according to the Terms of Service.

未经 Tumblr 事先明确书面同意,您在访问或使用服务时不得进行以下任何操作:(...) 从服务中抓取服务,尤其是从服务中抓取内容(定义见下文);"

"You may not do any of the following while accessing or using the Services: (...) scrape the Services, and particularly scrape Content (as defined below) from the Services, without Tumblr's express prior written consent;"

来源:

https://groups.google.com/forum/?fromgroups=#!topic/tumblr-api/ktfMIdJCOmc

这篇关于如何从 Python 中查看 Tumblr 帖子的所有注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆