README.md

tm.plugin.webmining

Build Status codecov.io License

tm.plugin.webmining is an R-package which facilitates text retrieval from feed formats like XML (RSS, ATOM) and JSON. Also direct retrieval from HTML is supported. As most (news) feeds only incorporate small fractions of the original text tm.plugin.webmining even extracts the text from the original text source.

Install

To install the latest version from CRAN simply

install.packages("tm.plugin.webmining")

Using the devtools package you can easily install the latest development version of tm.plugin.webmining from github with

library(devtools)
install_github("mannau/tm.plugin.webmining")

Windows users need to use the following command to install from github:

library(devtools)
install_github("mannau/boilerpipeR", args = "--no-multiarch")

Usage

The next snippet shows how to download and extract the main text from all supported sources as WebCorpus objects including a rich set of metadata like Author, DateTimeStamp or Source:

library(tm.plugin.webmining)
googlefinance <- WebCorpus(GoogleFinanceSource("NASDAQ:MSFT"))
googlenews <- WebCorpus(GoogleNewsSource("Microsoft"))
nytimes <- WebCorpus(NYTimesSource("Microsoft", appid = "<nytimes_appid>"))
reutersnews <- WebCorpus(ReutersNewsSource("businessNews"))
#twitter <- WebCorpus(TwitterSource("Microsoft")) -> not supported yet
yahoofinance <- WebCorpus(YahooFinanceSource("MSFT"))
yahooinplay <- WebCorpus(YahooInplaySource())
yahoonews <- WebCorpus(YahooNewsSource("Microsoft"))
liberation <- WebCorpus(LiberationSource("latest"))

License

tm.plugin.webmining is released under the GNU General Public License Version 3



mannau/tm.plugin.webmining documentation built on May 21, 2017, 5:45 p.m.