# NOT RUN {
# live stream tweets from Germany for 60 seconds and save to current working directory
get_tweets(method = "stream",
location = "DEU",
timeout = 60,
file_name = "german_tweets.json")
# OR
# live stream tweets from berlin for an hour
get_tweets(method = "stream",
location = "berlin",
timeout = 3600,
file_name = "berlin_tweets.json")
# OR
# use your own bounding box coordinates to strean tweets indefinitely (interrupt to stop)
get_tweets(method = 'stream',
location = c(-125, 26, -65, 49),
timeout = Inf)
# }
Run the code above in your browser using DataLab