从R访问用于文本挖掘的Facebook API [英] accessing Facebook API from R for Text Mining

查看:261
本文介绍了从R访问用于文本挖掘的Facebook API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有没有人知道如何可以从R内访问Facebook API。我想要访问我的墙上的文章,并进行非常基本的分析。问题是,除了我对文本挖掘知识非常基础的事实外,我对如何使用web-api(如果这是一个正确的概念)的知识是不存在的。假设我有一个api密钥,有人可以为我提供一个非常基本的示例/代码来演示如何将连接从R到Facebook,并下载一些数据?我想我将需要一个或多个R软件包,例如:Rcurl,Rjson ...



我现在的主要焦点是学习/提高我的文本挖掘技能R,所以我不想迷失/分心的基本程序来访问facebook api。



最后,我读了一个相关问题的评论
使用R?更新Facebook状态


...这不是你可以从Facebook中提取大量数据进行数据分析...。


有人可以详细说明吗?



Thanx

解决方案

可以使用Rfacebook包从以下链接访问Facebook API http://cran.r-project.org/web/packages/Rfacebook/Rfacebook.pdf 。此外,您可以在Feed中使用高级文本挖掘软件包中的文本挖掘。



更全面的帮助是在这里 http://pablobarbera.com/blog/archives/3.html



一个关于如何使用它的例子在这里



http://thinktostart.wordpress.com/2013/11/19/analyzing-facebook-with-r/


I was wondering if anyone know how i could access facebook API from within R.. I would like, to access the text in my wall post, and do very basic analysis. The problem is that, aside from the fact that my knowledge of text mining is very basic, my knowledge of how to use web-api (if that is even a correct concept), is non-existing.

Assuming that i have an api-key, can someone provide me with a very basic example/code to demonstrate how i could make the connection from R to facebook, and download some data? I imagine i will need one or more R packages, such as: Rcurl, Rjson...

My main focus right now is to learn/improve my text mining skills in R, and so i don't want to get lost into/distracted by basic programing to access facebook api.

Finally, i read in the comment on a related question Update Facebook status using R? that

"...it's not like you can pull large amounts of data from Facebook to do data analysis...".

Can anyone elaborate on that?

Thanx

解决方案

you can use Rfacebook package from following link to access Facebook API http://cran.r-project.org/web/packages/Rfacebook/Rfacebook.pdf. Further to this, you can use advance text mining packages within R for text mining on the feed.

A more comprehensive help is here http://pablobarbera.com/blog/archives/3.html

An example on how to use it is here

http://thinktostart.wordpress.com/2013/11/19/analyzing-facebook-with-r/

这篇关于从R访问用于文本挖掘的Facebook API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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