{"id":23577199,"url":"https://github.com/eggpi/citationhunt","last_synced_at":"2025-04-04T17:06:08.922Z","repository":{"id":27794327,"uuid":"31283291","full_name":"eggpi/citationhunt","owner":"eggpi","description":"A fun tool for quickly browsing unsourced snippets on Wikipedia.","archived":false,"fork":false,"pushed_at":"2025-03-31T12:22:08.000Z","size":2251,"stargazers_count":109,"open_issues_count":20,"forks_count":44,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T06:15:02.106Z","etag":null,"topics":["citations","flask","gamification","javascript","python","wikipedia"],"latest_commit_sha":null,"homepage":"https://citationhunt.toolforge.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggpi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-24T21:37:41.000Z","updated_at":"2025-03-31T12:22:12.000Z","dependencies_parsed_at":"2023-11-16T13:37:07.816Z","dependency_job_id":"2c348db3-a564-46a8-be17-701baff65fc4","html_url":"https://github.com/eggpi/citationhunt","commit_stats":{"total_commits":1312,"total_committers":35,"mean_commits":37.48571428571429,"dds":"0.38185975609756095","last_synced_commit":"e35547631f809de7e0f19dff26b1a1a7d49374e6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fcitationhunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fcitationhunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fcitationhunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fcitationhunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggpi","download_url":"https://codeload.github.com/eggpi/citationhunt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217175,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["citations","flask","gamification","javascript","python","wikipedia"],"created_at":"2024-12-26T22:27:11.220Z","updated_at":"2025-04-04T17:06:08.901Z","avatar_url":"https://github.com/eggpi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Citation Hunt\n\nCitation Hunt is a simple tool for finding unsourced statements on\nWikipedia in different languages. It is hosted at\n[https://citationhunt.toolforge.org](https://citationhunt.toolforge.org).\n\nThis repository contains the full server and client code. The\n[scripts/](https://github.com/eggpi/citationhunt/tree/master/scripts)\ndirectory contains all the scripts used for processing Wikipedia dumps.\nHopefully they will be illustrative and reusable for similar applications.\n\n#### I want to help!\n\nThat's great! There are many ways you can help. Please take a look at\n[CONTRIBUTING.md](https://github.com/eggpi/citationhunt/blob/master/CONTRIBUTING.md)\nfor guidelines and instructions.\n\n#### Running in Toolforge\n\nThere are three major components to Citation Hunt and they are each set up in\nslightly different ways in\n[Toolforge](https://wikitech.wikimedia.org/wiki/Help:Toolforge):\n\n* The HTTP serving job.\n* The periodic jobs that update the database.\n* The continuous job that identifies snippets that were fixed.\n\nAll of them run on\n[Kubernetes](https://wikitech.wikimedia.org/wiki/Help:Toolforge/Kubernetes). The\nKubernetes configuration is in the `k8s` directory.\n\nAfter logging in to `login.tools.wmflabs.org`, run the following commands to\ncreate the directory structure and enter the virtualenv:\n\n```\nmkdir www/python/\nwebservice --backend=kubernetes python3.9 shell\npython3 -m venv www/python/venv/\n. www/python/venv/bin/activate\n```\n\nNow, clone this repository, point uwsgi to it and install the dependencies:\n\n```\ngit clone https://github.com/eggpi/citationhunt.git\nln -s ../../citationhunt www/python/src\npip install -r citationhunt/requirements.txt\n```\n\nand start the webservice:\n\n```\nwebservice --backend=kubernetes python3.9 start\n```\n\nThen, generate the Cron jobs for Kubernetes:\n\n```\nkubectl get cronjobs | tail -n +1 | grep -E -o '^citationhunt-update-[^ ]+' | xargs kubectl delete cronjob  # delete existing jobs\n(cd citationhunt; k8s/crontab.py | kubectl apply -f -)\nkubectl get cronjobs # verify it\n```\n\nSee [scripts/README.md](https://github.com/eggpi/citationhunt/blob/master/scripts/README.md)\nfor more information about those jobs.\n\nFinally, use `k8s/compute_fixed_snippets.yaml` to launch `scripts/compute_fixed_snippets.py`\nto detect snippets that get fixed:\n\n```\nkubectl create --validate=true -f k8s/compute_fixed_snippets.yaml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fcitationhunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggpi%2Fcitationhunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fcitationhunt/lists"}