Giter Site home page Giter Site logo

teknologiwmid / citationhunt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eggpi/citationhunt

0.0 0.0 0.0 1.78 MB

A fun tool for quickly browsing unsourced snippets on Wikipedia.

Home Page: https://citationhunt.toolforge.org

License: MIT License

Python 54.95% HTML 5.32% CSS 4.14% JavaScript 35.32% Shell 0.27%

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://citationhunt.toolforge.org.

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.
  • The periodic jobs that update the database.
  • The continuous job that identifies snippets that were fixed.

All of them run on Kubernetes. The Kubernetes configuration is in the k8s directory.

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

$ mkdir www/python/
$ webservice --backend=kubernetes python3.7 shell
$ python3 -m venv 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.7 start

Then, generate the Cron jobs for Kubernetes:

$ (cd citationhunt; k8s/crontab.py | kubectl apply -f -)
$ kubectl get cronjobs # verify it

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

Finally, use k8s/compute_fixed_snippets.yaml to launch scripts/compute_fixed_snippets.py to detect snippets that get fixed:

$ kubectl create --validate=true -f k8s/compute_fixed_snippets.yaml

citationhunt's People

Contributors

eggpi avatar translatewiki avatar nikerabbit avatar siebrand avatar dependabot[bot] avatar papuass avatar stryn avatar venca24 avatar jhsoby avatar enterprisey avatar jain-aditya avatar amire80 avatar ashokchakra-tj avatar earwig avatar cladis avatar shdror avatar erickguan avatar henriquecrang avatar kht1992 avatar intracer avatar jessamynwest avatar karmadolkar avatar maxzhou1902 avatar ricordisamoa avatar sarojdhakal avatar sjoerddebruin avatar takot avatar yethrosh avatar

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.