A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.1 KiB

11 jaren geleden
13 jaren geleden
12 jaren geleden
10 jaren geleden
10 jaren geleden
10 jaren geleden
10 jaren geleden
10 jaren geleden
10 jaren geleden
10 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Some technical details are expanded upon
  5. [in a blog post](http://benkurtovic.com/2014/08/20/copyvio-detector.html).
  6. Dependencies
  7. ============
  8. * [earwigbot](https://github.com/earwig/earwigbot) >= 0.1
  9. * [flask](http://flask.pocoo.org/) >= 0.10.1
  10. * [flask-mako](https://pythonhosted.org/Flask-Mako/) >= 0.3
  11. * [flup](http://trac.saddi.com/flup) >= 1.0.3
  12. * [mako](http://www.makotemplates.org/) >= 0.7.2
  13. * [mwparserfromhell](https://github.com/earwig/mwparserfromhell) >= 0.3
  14. * [oursql](http://packages.python.org/oursql/) >= 0.9.3.1
  15. * [SQLAlchemy](http://sqlalchemy.org/) >= 0.9.6
  16. * [uglifycss](https://github.com/fmarcia/UglifyCSS/)
  17. * [uglifyjs](https://github.com/mishoo/UglifyJS/) >= 1.3.3
  18. Running
  19. =======
  20. - Install all dependencies listed above. You might want to use a
  21. [virtualenv](http://virtualenv.readthedocs.org/).
  22. - Create an SQL database with the `cache` and `cache_data` tables defined by
  23. [earwigbot-plugins](https://github.com/earwig/earwigbot-plugins/blob/develop/tasks/schema/afc_copyvios.sql).
  24. - Create an earwigbot instance in `.earwigbot` (run `earwigbot .earwigbot`). In
  25. `.earwigbot/config.yml`, fill out the connection info for the database by
  26. adding the following to the `wiki` section:
  27. _copyviosSQL:
  28. host: <hostname of database server>
  29. db: <name of database>
  30. If additional arguments are needed by `oursql.connect()`, like usernames or
  31. passwords, they should be added to the `_copyviosSQL` section.
  32. - Copy `.lighttpd.conf` to the relevant location (on Tool Labs, this is in the
  33. root of the project's home directory) and adjust its contents as necessary.
  34. - Run `./build.py` to minify JS and CSS files.
  35. - Adjust the hashbang in `app.fcgi` to point to the correct Python interpreter
  36. or virtual environment.
  37. - Start lighttpd (on Tool Labs, `webservice start`).