Learn R Programming

tm.plugin.webmining (version 0.9)

TwitterSource: Get feed data from Twitter Search API (https://dev.twitter.com/docs/api/1/get/search).

Description

The microblogging and social networking service twitter provides text based messages of up to 140 characters which can be searched and retrieved through the Twitter Search API. Up to 1500 tweets are provided per request and no external content retrieval is necessary. However, it should be noted that tweets contain special character formats and are quite challenging for text mining tasks (therefore require specialized toolset).

Usage

TwitterSource(query, n = 1500,
    params = list(lang = "en"), ...)

Arguments

query
Google Blog Search query
n
number of results, defaults to 1500
params,
additional query parameters, see http://search.twitter.com/api/
...
additional parameters to WebSource

Value

  • WebXMLSource

See Also

WebSource

Examples

Run this code
corpus <- Corpus(TwitterSource("Microsoft"))

Run the code above in your browser using DataLab