Giter Site home page Giter Site logo

karmadolkar / citationhunt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eggpi/citationhunt

0.0 0.0 0.0 1.62 MB

A fun tool for quickly browsing unsourced snippets on Wikipedia.

Home Page: https://tools.wmflabs.org/citationhunt/

License: MIT License

Python 57.23% HTML 5.17% CSS 4.31% JavaScript 33.01% Shell 0.28%

citationhunt's Introduction

Citation Hunt

Citation Hunt is a simple tool for finding unsourced statements on Wikipedia in different languages. It is hosted at https://tools.wmflabs.org/citationhunt/.

This repository contains the full server and client code. The scripts/ directory contains all the scripts used for processing Wikipedia dumps. Hopefully they will be illustrative and reusable for similar applications.

I want to help!

That's great! There are many ways you can help. Please take a look at CONTRIBUTING.md for guidelines and instructions.

Running in Toolforge

There are three major components to Citation Hunt and they are each set up in slightly different ways in Toolforge:

  • The HTTP serving job runs on Kubernetes.
  • The jobs that update the database run on the job grid via Cron.
  • The job that identifies snippets that were fixed runs continuously on the grid.

Moving everything to Kubernetes is tracked in issue #134.

After logging in to login.tools.wmflabs.org, run the following commands to create the directory structure and enter the virtualenv:

$ mkdir www/python/
$ virtualenv --python python3 www/python/venv/
$ . www/python/venv/bin/activate

Now, clone this repository, point uwsgi to it and install the dependencies:

$ git clone https://github.com/eggpi/citationhunt.git
$ ln -s ../../citationhunt www/python/src
$ pip install -r citationhunt/requirements.txt

and start the webservice:

$ webservice --backend=kubernetes python3.5 start

Then, install the crontab to launch database update jobs:

$ (cd citationhunt; ./crontab.py | crontab)
$ crontab -l  # verify it

See scripts/README.md for more information about those jobs.

Finally, submit scripts/compute_fixed_snippets.py as a job on the grid to detect snippets that were fixed:

$ jstart -N compute_fixed_snippets $PWD/www/python/venv/bin/python3 $PWD/www/python/src/scripts/compute_fixed_snippets.py global

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.