2 Twitter Token/API Key

To collect Twitter data, we set up a developer account to receive a Twitter token. This allowed us to access various types of data and extract it from Twitter. We also had to acquire an API key to authenticate access to us when running the code every day to collect data. Once we received the key and token, we prompted the code to reference each string of text with a “nickname” to reduce clutter in our code. You can see how we referenced each key/token below and how they are included in the code for collecting data from our developer account, “@HNA_Data

api_key <- "
6r3UgRwTdVb9bU5CEbZsiJr4n"
api_secret_key <- "U1GsNOoTSlgCOC5KKKKrcpTaHSzGCqPLbe2CVCslaFGBLndCoF"
token <- "3668673555-TOrEM7vlAXrI8M6htTUfpiOJq0Uo7rKfTK7DlTq"
secret <- "enmqDxxv7wkMvCe3p877B8cSZAMsFSu5Mm7imhOgoXLg4"

token <- create_token(
  app= "HNA_Data",
  consumer_key = api_key,
  consumer_secret = api_secret_key,
  access_token = token,
  access_secret = secret
  )