A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
Ben Kurtovic c9066e6259 More Python 3 conversion and heavy refactoring há 1 mês
logs Always have a log dir. há 10 anos
scripts Initial Python 3 conversion há 2 meses
src/copyvios More Python 3 conversion and heavy refactoring há 1 mês
static More Python 3 conversion and heavy refactoring há 1 mês
templates More Python 3 conversion and heavy refactoring há 1 mês
.gitignore Initial Python 3 conversion há 2 meses
.pre-commit-config.yaml More Python 3 conversion and heavy refactoring há 1 mês
LICENSE Initial Python 3 conversion há 2 meses
Makefile More Python 3 conversion and heavy refactoring há 1 mês
README.md More Python 3 conversion and heavy refactoring há 1 mês
app.py More Python 3 conversion and heavy refactoring há 1 mês
pyproject.toml More Python 3 conversion and heavy refactoring há 1 mês
schema.sql More additions for sqlite support há 5 anos

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:
          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.