Description Usage Arguments Details Value Author(s) References Examples
View source: R/multipleSearchTwitteR.R
The function scrapes from official twitter's API using multiple search query and creates a dataset about output of API adding the column saercQuery
1 | multipleSearchTwitteR(searchQuery, number, language = NULL, myConsumer_key, myConsumer_secret, myAccess_token, myAccess_secret)
|
searchQuery |
a character string |
number |
the number of tweets for each searchQuery |
language |
the language of tweets |
myConsumer_key |
your consumer key |
myConsumer_secret |
your consumer secret |
myAccess_token |
your access token |
myAccess_secret |
your access secret |
To use this feature you need a twitter account and twitter app. To create the app go here www.twitter.com/app. Work with direct authentication.
a data.frame
Nicola Procopio
http://www.inside-r.org/packages/cran/twitter/docs/Rtweets
1 2 3 4 5 6 7 | ## not run
# sq<-c("obama", "#googledoodle", "david bowie")
# dati<-multipleSearchTwitteR(searchQuery = sq, number = 3, language = "en",
# myConsumer_key = "yourConsumerKey",
# myConsumer_secret = "yourConsumerSecret",
# myAccess_token = "myAccess_token",
# myAccess_secret = "myAccess_secret")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.