Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qoda/python-searchengine

A simple search engine which utilizes whoosh, mongodb, a custom html scraper and simple crawler.
https://github.com/qoda/python-searchengine

Last synced: 11 days ago
JSON representation

A simple search engine which utilizes whoosh, mongodb, a custom html scraper and simple crawler.

Awesome Lists containing this project

README

        

NB: NO LONGER UNDER DEVELOPMENT
===============================

python-searchengine
===================
A simple search engine which utilises whoosh, a custom html scraper and simple
crawler/spider.

Requirements
------------

System:
~~~~~~~

- python 2.6+

Python:
~~~~~~~

- whoosh
- pymongo

Installation
------------

1. From git::

$ git clone [email protected]:qoda/python-searchengine.git
$ cd python-searchengine
$ python setup.py install

Usage
-----

Simple Usage::
~~~~~~~~~~~~~~

1. Use from class::

from searchengine import SearchEngine

search_engine = SearchEngine()
search_engine.search('"Python Search Engine" GitHub -bitbucket')

2. Use from method::

from searchengine import searchengine

searchengine(query='"Python Search Engine" GitHub -bitbucket')

3. Use from commandline (installed)::

$ python -m searchengine.main '"Python Search Engine" GitHub -bitbucket'

Required Arguments:
~~~~~~~~~~~~~~~~~~~

- **query** - query the index

Optional Arguments:
~~~~~~~~~~~~~~~~~~~

- **index** (default: /path/to/app/index)