This is the necessary code and files needed to mine twitter scientific literature posting bots and organize by likes and re-tweets, as I did in this article.
- Download the twitteR CRAN package.
- Set up the authentication with OAuth, described in section 3 of this document
- Set up the remaining user inputs in the script, particularly the data directory and the output direcotry (data_dir and out_dir). You also have the option to include only pre-prints or include all types of papers.
Notice that it the file organized into 4 columns.
source: The name of the twitter bot.
category: whether or not it is a pre-print. Useful for downstream organization.
handle: The twitter handle.
notes: add any additional information about the given twitter handle.
This csv file is meant to be built out. It might be that you find other automated literature-posting bots of interest, or you want to look at the output of particular users. Modify the csv file accordingly.