Query server that stores a query or string on a server. This mini-tool can be used to process a query string. This string calls the search engine result scraper at searss and the output from the scraper is written to a file, named with the query string as file name.
- Python 2.x or Python 3.x
- Node.js
- Pip
- Feedgen
- BeautifulSoup4
Make sure you have Nodejs installed. Running this tool requires installing the nodejs as well as python dependencies.
$ git clone https://github.com/fossasia/query-server.git
$ cd query-server
$ npm install
$ pip install -r requirements.txt
To set up MongoDB on your server :
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
$ sudo service mongod start
To run the query server:
$ npm start
Then head over to http://localhost:7001 in your browser.
Found an issue? Post it in the issue tracker