Wikiwho deployment

Getting Started : Running the wikiwho code on your local PC

All the instructions on this page are for running the code in Ubuntu.

  1. Make sure you have a running version of Python 3 on your computer.
  2. Install mediawiki utilities by running the following command in your terminal:
     pip install mediawiki-utilities

    as outlined in this site

  3. Download the following two repositories and unzip them into a single folder.
  4. Download the xml dump of any wiki article of your choice into the same folder. e.g.
  5. Run the file using the following command to get the authorship for all tokens having a particular revision id (686845449 in the train.xml case)
    python3 -i train.xml -o a -r 686845449
  6. You can use the following command to get the edit interactions of every revision to every other revision up to rev id 686845449:
    python3 -i train.xml -o r -r 686845449
  7. The next step would be to get this code running in PythonAnywhere.

Deploying wikiwho code onto PythonAnywhere

  1. Create an account on PythonAnywhere.
  2. In your local PC, first zip the running code.
  3. In PythonAnywhere, navigate to the ‘Files’ tab and upload this zipped directory.
  4. Open a new bash console and unzip this folder using the appropriate command depending on the zip type. e.g.
    tar -xzvf file.tar.gz
  5. Now you can cd into the directory and follow steps 5 and 6 above.
%d bloggers like this: