A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 2.2 KiB

il y a 11 ans
il y a 13 ans
il y a 12 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. This is a [copyright violation](https://en.wikipedia.org/wiki/WP:COPYVIO)
  2. detector running on [Wikimedia Labs](https://tools.wmflabs.org/copyvios).
  3. It can search the web for content similar to a given article, and graphically
  4. compare an article to a specific URL.
  5. Dependencies
  6. ============
  7. * [earwigbot](https://github.com/earwig/earwigbot) >= 0.1
  8. * [flask](http://flask.pocoo.org/) >= 0.10.1
  9. * [flask-mako](https://pythonhosted.org/Flask-Mako/) >= 0.3
  10. * [flup](http://trac.saddi.com/flup) >= 1.0.3
  11. * [mako](http://www.makotemplates.org/) >= 0.7.2
  12. * [mwparserfromhell](https://github.com/earwig/mwparserfromhell) >= 0.3
  13. * [oursql](http://packages.python.org/oursql/) >= 0.9.3.1
  14. * [SQLAlchemy](http://sqlalchemy.org/) >= 0.9.6
  15. * [uglifycss](https://github.com/fmarcia/UglifyCSS/)
  16. * [uglifyjs](https://github.com/mishoo/UglifyJS/) >= 1.3.3
  17. Running
  18. =======
  19. - Install all dependencies listed above. You might want to use a
  20. [virtualenv](http://virtualenv.readthedocs.org/).
  21. - Create the SQL database defined in `schema.sql`. Also create the `cache` and
  22. `cache_data` tables defined by
  23. [earwigbot-plugins](https://github.com/earwig/earwigbot-plugins/blob/develop/tasks/schema/afc_copyvios.sql);
  24. this can be in the same or a different database.
  25. - Create an earwigbot instance in `.earwigbot` (run `earwigbot .earwigbot`). In
  26. `.earwigbot/config.yml`, fill out the connection info for the database(s)
  27. above by adding the following to the `wiki` section:
  28. _copyviosSQL:
  29. globals:
  30. host: <hostname of database defined in schema.sql>
  31. db: <name of database>
  32. cache:
  33. host: <hostname of database containing cache and cache_data tables>
  34. db: <name of database>
  35. If additional arguments are needed by `oursql.connect()`, like usernames or
  36. passwords, they should be added to the `globals` and `cache` sections.
  37. - Copy `.lighttpd.conf` to the relevant location (on Tool Labs, this is in the
  38. root of the project's home directory) and adjust its contents as necessary.
  39. - Run `./build.py` to minify JS and CSS files.
  40. - Adjust the hashbang in `app.fcgi` to point to the correct Python interpreter
  41. or virtual environment.
  42. - Start lighttpd (on Tool Labs, `webservice start`).