A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
Ben Kurtovic 34edea66d1
Merge pull request #71 from earwig/dependabot/uv/uv-a91e8b9994
vor 1 Monat
.github/workflows Tweak slightly and regenerate uv lock vor 2 Monaten
i18n Localisation updates from https://translatewiki.net. vor 1 Monat
logs Always have a log dir. vor 12 Jahren
scripts Initial Python 3 conversion vor 5 Monaten
src/copyvios Fix missing close paren vor 2 Monaten
.gitignore Add localization support vor 2 Monaten
.pre-commit-config.yaml Bump ruff/pyright versions vor 5 Monaten
LICENSE Initial Python 3 conversion vor 5 Monaten
Makefile Update Makefile vor 5 Monaten
README.md Bump earwigbot to fix import bug and get pre-commit working vor 5 Monaten
app.py Set Cache-Control on static files with a version tag vor 5 Monaten
pyproject.toml Tweak slightly and regenerate uv lock vor 2 Monaten
schema.sql Store more in history table vor 2 Monaten
tool_translations_config.py Use native i18n link support; some other cleanup vor 2 Monaten
uv.lock Bump nltk from 3.10.1 to 3.10.3 in the uv group across 1 directory vor 1 Monat

README.md

This is a copyright violation detector web tool for Wikipedia articles running on Wikimedia Cloud Services at copyvios.toolforge.org.

It can search the web for content similar to a given article, and graphically compare an article to specific URLs. Some technical details are expanded upon in a blog post, though much of it is outdated.

Installation

  • If using Toolforge, clone the repository to ~/www/python/src, or otherwise symlink it to that directory.

  • Create a virtual environment and install the dependencies. On Toolforge, this should be in ~/www/python/venv, otherwise it can be in a subdirectory of the git project named .venv:

    python3 -m venv .venv
    . .venv/bin/activate
    pip install -e .
    
  • If you intend to modify CSS or JS, install the frontend dependencies:

    npm install -g uglify-js cssnano postcss postcss-cli
    
  • Create an SQL database with the tables defined by schema.sql.

  • Create an earwigbot instance in .earwigbot (run earwigbot .earwigbot). In .earwigbot/config.yml, fill out the connection info for the database by adding the following to the wiki section:

    copyvios:
      oauth:
        consumer_token: <oauth consumer token>
        consumer_secret: <oauth consumer secret>
      sql:
        engine: mysql
        host: <hostname of database server>
        db: <name of database>
    

Running

  • Run make to minify JS and CSS files after making any frontend changes.

  • Start your WSGI server pointing to app:app. For production, uWSGI or Gunicorn are likely good options. For development, use flask run.