diff --git a/README.md b/README.md index 010cd72..cc54a80 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ This is a [copyright violation](https://en.wikipedia.org/wiki/WP:COPYVIO) -detector running on [Wikimedia Labs](https://tools.wmflabs.org/copyvios). +detector running on [Wikimedia Cloud Services](https://copyvios.toolforge.org/). It can search the web for content similar to a given article, and graphically compare an article to a specific URL. Some technical details are expanded upon -[in a blog post](http://benkurtovic.com/2014/08/20/copyvio-detector.html). +[in a blog post](https://benkurtovic.com/2014/08/20/copyvio-detector.html). Dependencies ============ * [earwigbot](https://github.com/earwig/earwigbot) >= 0.1 -* [flask](http://flask.pocoo.org/) >= 0.10.1 +* [flask](https://flask.palletsprojects.com/) >= 0.10.1 * [flask-mako](https://pythonhosted.org/Flask-Mako/) >= 0.3 -* [mako](http://www.makotemplates.org/) >= 0.7.2 +* [mako](https://www.makotemplates.org/) >= 0.7.2 * [mwparserfromhell](https://github.com/earwig/mwparserfromhell) >= 0.3 -* [oursql](http://packages.python.org/oursql/) >= 0.9.3.1 -* [requests](http://python-requests.org/) >= 2.9.1 -* [SQLAlchemy](http://sqlalchemy.org/) >= 0.9.6 +* [oursql](https://pythonhosted.org/oursql/) >= 0.9.3.1 +* [requests](https://requests.readthedocs.io/) >= 2.9.1 +* [SQLAlchemy](https://www.sqlalchemy.org/) >= 0.9.6 * [apsw](https://github.com/rogerbinns/apsw) >= 3.26.0 * [uglifycss](https://github.com/fmarcia/UglifyCSS/) * [uglifyjs](https://github.com/mishoo/UglifyJS/) >= 1.3.3 @@ -25,7 +25,7 @@ Running - If using Tool Labs, you should clone the repository to `~/www/python/src`, or otherwise symlink it to that directory. A - [virtualenv](http://virtualenv.readthedocs.org/) should be created at + [virtualenv](https://virtualenv.pypa.io/) should be created at `~/www/python/venv`. - Install all dependencies listed above. diff --git a/app.py b/app.py index 14889d3..ff88f48 100755 --- a/app.py +++ b/app.py @@ -58,7 +58,7 @@ def setup_app(): def prepare_request(): g._db = None g.cookies = parse_cookies( - request.script_root, request.environ.get("HTTP_COOKIE")) + request.script_root or "/", request.environ.get("HTTP_COOKIE")) g.new_cookies = [] @app.after_request diff --git a/copyvios/turnitin.py b/copyvios/turnitin.py index 2b436ad..a6177e9 100644 --- a/copyvios/turnitin.py +++ b/copyvios/turnitin.py @@ -8,7 +8,7 @@ from .misc import parse_wiki_timestamp __all__ = ['search_turnitin', 'TURNITIN_API_ENDPOINT'] -TURNITIN_API_ENDPOINT = 'http://tools.wmflabs.org/eranbot/plagiabot/api.py' +TURNITIN_API_ENDPOINT = 'https://eranbot.toolforge.org/plagiabot/api.py' def search_turnitin(page_title, lang): """ Search the Plagiabot database for Turnitin reports for a page. diff --git a/static/toolinfo.json b/static/toolinfo.json index 03c18c8..3990634 100644 --- a/static/toolinfo.json +++ b/static/toolinfo.json @@ -2,7 +2,7 @@ "name" : "copyvios", "title" : "Copyvios", "description" : "Detects copyright violations in pages by searching for their contents online. Can also compare a page and a specific URL.", - "url" : "https://tools.wmflabs.org/copyvios", + "url" : "https://copyvios.toolforge.org/", "keywords" : "copyvios, copyright violations", "author" : "The Earwig", "repository" : "https://github.com/earwig/copyvios" diff --git a/templates/api.mako b/templates/api.mako index 0fd3268..18913b2 100644 --- a/templates/api.mako +++ b/templates/api.mako @@ -40,9 +40,9 @@ % if help:
This is the first version of the API for Earwig's Copyvio Detector. It works, but some bugs might still need to be ironed out, so please report any if you see them.
+This is the first version of the API for Earwig's Copyvio Detector. It works, but some bugs might still need to be ironed out, so please report any if you see them.
The API responds to GET requests made to https://tools.wmflabs.org/copyvios/api.json. Parameters are described in the tables below:
+The API responds to GET requests made to https://copyvios.toolforge.org/api.json. Parameters are described in the tables below:
Always | @@ -63,7 +63,7 @@format | json, jsonfm | No (default: json) | -The default output format is JSON. jsonfm mode produces the same output, but renders it as a formatted HTML document for debugging. | +The default output format is JSON. jsonfm mode produces the same output, but renders it as a formatted HTML document for debugging. | |||
---|---|---|---|---|---|---|---|---|
version | @@ -254,7 +254,7 @@