Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eggpi/similarity
https://github.com/eggpi/similarity
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/eggpi/similarity
- Owner: eggpi
- License: mit
- Created: 2017-09-22T19:00:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:34:08.000Z (over 1 year ago)
- Last Synced: 2024-12-25T08:06:43.606Z (3 days ago)
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wikipedia Needs References / similarity
A browser extension that tells you when a page you're reading could be used
as a reference in a Wikipedia article. With one click, you can get to an article
and start editing!Get it from the [Chrome web store](https://chrome.google.com/webstore/detail/wikipedia-needs-reference/michcligfeahibdmakjapmaigojkddmk)
or [Firefox Add-ons](https://addons.mozilla.org/en-GB/firefox/addon/wikipedia-needs-references/).This repository contains all of the code for both the extension itself
(Wikipedia Needs References) and the backend (similarity), which is hosted in
the [Wikimedia Toolforge](https://tools.wmflabs.org/) and backed by
ElasticSearch.## Installing on Toolforge
First, make sure to request [ElasticSearch
access](https://wikitech.wikimedia.org/wiki/Help:Toolforge/Elasticsearch).Clone the repository:
```
$ git clone https://github.com/eggpi/similarity
$ mkdir -p www/python/
$ ln -s ../../similariy www/python/src
```Create a virtualenv and install the requirements:
```
$ virtualenv -p python3 www/python/venv
$ . www/python/venv/bin/activate
$ pip install --upgrade pip
$ pip install -r similarity/requirements.txt
$ deactivate
```It may be necessary to run the `pip install -r` command more than once until it
actually works ¯\\\_(ツ)\_/¯Install the crontab:
```
$ cat similarity/crontab | crontab
```You also want to run the command in the crontab manually to populate the initial
ElasticSearch dataset.Now launch the app!
```
$ webservice --backend=kubernetes python start
```