简体   繁体   English

有没有办法从Facebook页面中抓取Facebook评论和ID,如nytimes或监护人用于分析目的?

[英]Is there a way to scrape Facebook comments and IDs from a Facebook page like nytimes or the guardian for analytical purposes?

有没有办法从Facebook页面中抓取Facebook评论和ID,如nytimes或监护人用于分析目的!

For scraping, the quick answer is no . 对于抓取,快速回答是否定的 Use the API . 使用API I know this question is for Python, but if you use R, there is the Rfacebook package, which has the functions getPage() and getPost() . 我知道这个问题适用于Python,但如果使用R,则有Rfacebook包,其中包含函数getPage()getPost() A combination of these (ie get the page and then loop through the post ids to get the comments with getPost() to get comments and the IDs of the commentators) should get you what you want. 这些的组合(即获取页面然后循环通过post id获取getPost()的注释以获取注释和评论员的ID)应该可以得到你想要的。 Apologies, I don't know if there is anything similar for Python. 道歉,我不知道Python是否有类似的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM