A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Você não pode selecionar mais de 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.

README.md 1.9 KiB

11 anos atrás
13 anos atrás
12 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
10 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 an SQL database with the `cache` and `cache_data` tables defined by
  22. [earwigbot-plugins](https://github.com/earwig/earwigbot-plugins/blob/develop/tasks/schema/afc_copyvios.sql).
  23. - Create an earwigbot instance in `.earwigbot` (run `earwigbot .earwigbot`). In
  24. `.earwigbot/config.yml`, fill out the connection info for the database by
  25. adding the following to the `wiki` section:
  26. _copyviosSQL:
  27. host: <hostname of database server>
  28. db: <name of database>
  29. If additional arguments are needed by `oursql.connect()`, like usernames or
  30. passwords, they should be added to the `_copyviosSQL` section.
  31. - Copy `.lighttpd.conf` to the relevant location (on Tool Labs, this is in the
  32. root of the project's home directory) and adjust its contents as necessary.
  33. - Run `./build.py` to minify JS and CSS files.
  34. - Adjust the hashbang in `app.fcgi` to point to the correct Python interpreter
  35. or virtual environment.
  36. - Start lighttpd (on Tool Labs, `webservice start`).