A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
Ben Kurtovic 7b8e1a1ebd
Merge pull request #69 from earwig/dependabot/uv/soupsieve-2.8.4
hace 3 meses
.github/workflows Set up pre-commit hooks to run on push hace 5 meses
logs Always have a log dir. hace 12 años
scripts Initial Python 3 conversion hace 5 meses
src/copyvios Disable non-functional turnitin API hace 4 meses
.gitignore Bump earwigbot to fix import bug and get pre-commit working hace 5 meses
.pre-commit-config.yaml Bump ruff/pyright versions hace 5 meses
LICENSE Initial Python 3 conversion hace 5 meses
Makefile Update Makefile hace 5 meses
README.md Bump earwigbot to fix import bug and get pre-commit working hace 5 meses
app.py Set Cache-Control on static files with a version tag hace 5 meses
pyproject.toml Bump earwigbot to fix import bug and get pre-commit working hace 5 meses
schema.sql Update SQL schema hace 5 meses
uv.lock Merge pull request #69 from earwig/dependabot/uv/soupsieve-2.8.4 hace 3 meses

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.