Description Usage Arguments Details Value Author(s) Examples
View source: R/downloadTweets.R
downloadTweets
downloads Tweets containing specified keywords from the Twitter API
1 | downloadTweets(search_terms, n = 100, lang = "en")
|
search_terms |
a string containing the search terms in Twitter format (use OR and AND to connect multiple search terms in one search) |
n |
The number of Tweets downloaded. Please note that this limit is based on your Twitter account |
lang |
The language of the Tweets. Default is English. Please refer to the Twitter API documentation for language codes |
This function downloads Tweets for a specified keyword list, removes line breaks, adds a column isNeed filled with 0
a data frame containing the tweets as well as an additional column isNeed filled with 0
Dorian Proksch <dorian.proksch@hhl.de>
1 2 3 4 5 6 | searchterm <- '"smart speaker" OR "homepod" OR "google home mini"'
## Not run:
token <- twitterLogin()
currentTweets <- downloadTweets(searchterm, n = 180)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.