a simple django search engine built using django-googlesearch app and Google Custom Search Engine
- Make a virtualenv
virtualenv -p python3 env && cd env
- Activate the virtualenv
source bin/activate
- Clone this repository
git clone https://github.com/farazaulia/simple-django-searchengine.git && cd simple-django-searchengine
- Install dependecies
pip install -r requirements.txt
- Rename
tkcbise/example-settings.py
intosettings.py
- Add your API_KEY and CUSTOM_SEARCH_ID in
tkcbise/settings.py
GOOGLE_SEARCH_API_KEY = 'YOUR_GOOGLE_API_KEY'
GOOGLE_SEARCH_ENGINE_ID = 'YOU_CUSTOM_SEARCH_ID'
GOOGLE_SEARCH_API_VERSION = 'v1'
GOOGLE_SEARCH_RESULTS_PER_PAGE = 10
GOOGLE_SEARCH_MAX_PAGES = 10
- Run the server
python manage.py runserver
- Open website in browser at
http://localhost:8000