https://github.com/ahmia/search
Ahmia requires Python 2.7+ and Django 1.6+
The crawler is called Onionbot and it requires Apache Solr for the data.
$ apt-get install libxml2-dev libxslt-dev python-dev
$ apt-get install libpq-dev
$ apt-get install python-socksipy python-psycopg2 libapache2-mod-wsgi
$ apt-get install libffi-dev
$ pip install -r requirements.txt
$ chmod -R ugo+rx /usr/local/lib/ahmia/tools/
$ chown -R www-data:www-data /usr/local/lib/ahmia/
$ chmod -R u=rwX,g=rX,o=rX /usr/local/lib/ahmia/
Upper limit to memory that Apache needs is XY8MB. For instance, 4168MB = 513MB.
cp apache2/sites-available/django-ahmia /etc/apache2/sites-available/django-ahmia
/etc/init.d/apache2 restart
$ chown www-data:www-data /usr/local/lib/ahmia
$ chown www-data:www-data /usr/local/lib/ahmia/ahmia_db
You can try the demo by cloning this repository and running the test server with provided data:
$ python manage.py syncdb
$ python manage.py loaddata ahmia/fixtures/initial_data.json
$ python manage.py runserver
Then open your browser to http://localhost:8000
Unittests:
$ python manage.py test ahmia/tests/
Please, at least, validate your Python code with:
$ pylint --rcfile=pylint.rc ./ahmia/python_code_file.py
and fix the major problems.