Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R web/文本挖掘-web查询JSON读取_Json_R_Web_Mining - Fatal编程技术网

R web/文本挖掘-web查询JSON读取

R web/文本挖掘-web查询JSON读取,json,r,web,mining,Json,R,Web,Mining,在Blekko搜索引擎中,您可以获得JSON格式的搜索结果,例如使用搜索词“lifehacker”: 您如何从R执行此查询并解析内容? [有一个URL、一个RSS URL和一个带有主文本的片段。] 我已经尝试过包tm.plugin.webmining和boilerpipeR,但没有找到答案 使用Rcurl和RJSONIO软件包非常方便地检索rjson结果: library(RCurl) library(RJSONIO) doc <- getURL('http://blekko.com/

在Blekko搜索引擎中,您可以获得JSON格式的搜索结果,例如使用搜索词“lifehacker”:

您如何从R执行此查询并解析内容? [有一个URL、一个RSS URL和一个带有主文本的片段。]


我已经尝试过包tm.plugin.webmining和boilerpipeR,但没有找到答案

使用
Rcurl
RJSONIO
软件包非常方便地检索
rjson
结果:

library(RCurl)
library(RJSONIO)
doc <-  getURL('http://blekko.com/ws/?q=lifehacker+%2Fjson')
doc.ll <- fromJSON(doc)
doc.ll$RESULT