library(twitteR)
library(ROAuth)
library(rtweet)
consumer_key="1I7DImvpcMNikoRO7X388ihbg"
consumer_secret="jhca6YSECJKncLfoajMP4xkBChaj69SuGNqeRNaIJeD06EQFsy"
##Bearer token = AAAAAAAAAAAAAAAAAAAAAKNrGAEAAAAAl7%2BE903hTQeHF9PxDhuhD7XykjY%3DLJ8l7HbYtLuLb04QDMxzjXml7dk8tyIYavktaIgND1dLNistaL"
access_token="1095899256228061184-HllRyiRB8OkSOPpDDTad0xh3477csP"
access_secret="Fjvb16Oaitmi6gYH1tmJFOvQQucpFwvFgNuDUUF1xReex"
setup_twitter_oauth(consumer_key,consumer_secret,access_token,access_secret)
tw = twitteR::searchTwitter("#UScollege",n=100, since="2010-03-01")
d = twitteR::twListToDF(tw)