Skip to content

Code and data for the paper 'The role of online attention in the supply of disinformation in Wikipedia'

License

Notifications You must be signed in to change notification settings

CSDL-UMD/wikihoaxes

Repository files navigation

This repository contains the notebooks and the scripts required to replicate the paper's results.

Installation

The notebook was written in Python 3. A number of dependencies are to be installed before running it. A list of package requirements is provided. The simplest method is to run a package manager such as pip or conda. It is recommended that all dependencies are installed in a separate Python environment.

The best way to do so is to use the Miniconda, which is a small bootstrap version of the largest Anaconda Python distribution. Miniconda is available for most major operative systems (Windows, Linux, MacOS)

  1. Download Miniconda from here: https://conda.io/miniconda.html
  2. Follow the installation instruction for your platform: https://conda.io/projects/conda/en/latest/user-guide/install/index.html
  3. Clone or download this repository
git clone https://github.com/CSDL-USF/wikihoaxes.git
  1. Open a terminal and run:
    cd wikihoaxes
    conda env create --file environment.yml
    conda activate wikihoaxes

Data

DATA contains the data required to run plots.ipynb & data.ipynb

Replicating plots

To open the notebook, follow the instructions above for installing the Python environment and for obtaining the dataset files. From the location where you downloaded this repository launch Jupyter Notebook with:

conda activate wikihoaxes
jupyter notebook

This will open the notebook interface in your browser. It will show the contents of this repository. Click on the entry called plots.ipynb.

Replicating data generation

After opening the notebook interface, click on the notebook data.ipynb to regenerate the data used to generate the plots in plots.ipynb

Wikimedia Toolforge server scripts

The directory 'scripts' contains python files which are meant to run on Wikimedia's Toolforge server. For information on how to access Toolforge, consult the following link and check their quickstart guide: https://wikitech.wikimedia.org/wiki/Portal:Toolforge

About

Code and data for the paper 'The role of online attention in the supply of disinformation in Wikipedia'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published