rtweet

install.packages("rtweet")

library(rtweet)

app_name <- "testing_api_twitter_app"

consumer_key <- "UHQocEiFIZeiSOouPfCNUCZi2"
consumer_secret <- "nnCbKY3SyBkz42P7a9M5dd0BUQAuT6saaeNSuInl7fzzizlRuZ"

token <- create_token(app_name, consumer_key, consumer_secret)

rt <- search_tweets(geocode = lookup_coords("Prague, CZE"))

rt <- search_tweets("statistics OR statistical OR quantitative")

rt