Analysis codes to reproduce the results of the paper: Bovet, A. & Makse, H. A. Influence of fake news in Twitter during the 2016 US presidential election. Nat. Commun. 10, 7 (2019). http://www.nature.com/articles/s41467-018-07761-2
By using this code you agree with the following points:
-
The code is provided without any warranty or conditions of any kind. We assume no responsibility for errors or omissions in the results and interpretations following from applications of the code.
-
You commit to cite our paper (above) in publications where you use this code.
The dataset containing the retweet networks and the tweet ids of the tweets used in the article is available here: http://www-levich.engr.ccny.cuny.edu/~hernanlab/uploads/tweet_ids_dataset.zip (see https://hmakse.ccny.cuny.edu/twitter-analysis/).
The website http://www.opensources.co/ that we reference in our paper is no longer accessible. A copy of their list of news outlets is available here: https://github.com/alexbovet/opensources
To compute the Collective Influence ranking of nodes in the retweet networks you must first compile the cython code with : python setup.py build_ext --inplace