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 1.9 KiB

11 years ago
13 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. * [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. - If using Tool Labs, you should clone the repository to `~/www/python/src`, or
  20. otherwise symlink it to that directory. A
  21. [virtualenv](http://virtualenv.readthedocs.org/) should be created at
  22. `~/www/python/venv`.
  23. - Install all dependencies listed above.
  24. - Create an SQL database with the `cache` and `cache_data` tables defined by
  25. [earwigbot-plugins](https://github.com/earwig/earwigbot-plugins/blob/develop/tasks/schema/afc_copyvios.sql).
  26. - Create an earwigbot instance in `.earwigbot` (run `earwigbot .earwigbot`). In
  27. `.earwigbot/config.yml`, fill out the connection info for the database by
  28. adding the following to the `wiki` section:
  29. _copyviosSQL:
  30. host: <hostname of database server>
  31. db: <name of database>
  32. If additional arguments are needed by `oursql.connect()`, like usernames or
  33. passwords, they should be added to the `_copyviosSQL` section.
  34. - Run `./build.py` to minify JS and CSS files.
  35. - Start the web server (on Tool Labs, `webservice2 uwsgi-python start`).