This is the repo for replication materials for the tweets on Afghanistan research. It contains shell, Python and R scripts to be run in American University’s high-performance servers. You can find code to extract tweets, estimate user ideologies of Twitter users, their bot probabilities, sentiment analysis, and topic modeling (STM) here.