library(rtweet)
## access token method: create token and save it as an environment variable
create_token(
app = "XXXXXXXXXXXXXXXXXXXXXXXXX",
consumer_key = "XXXXXXXXXXXXXXXXXXXXXXXX",
consumer_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
access_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
access_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
)
## define the area of UK as a circle
location <- '54.834318,-2.666795,600km'
## keywords from 'netsanity.net'
## https://netsanity.net/teen-slang-parents-guide/
keywords <- c("bae","low-key","skurt","throw shade","straight fire",
"sip tea","down in the DM","Netflix ‘n Chill","NIFOC","CU46","GNOC","420",
"thicc","finna","boujee","AF","OG","yeet")
kw_tw <- search_tweets2(keywords, n=500, geocode=location) ## search tweets by keywords
save(kw_tw, file="./kw_tw.rdata")
save(keywords, file="./keywords.rdata")