Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.27 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.27 KB

Python, Flask, etc. React

search-engine

This project allows users to search technical blogs!


There are three core modules:

  • crawler.py — a web crawler that utilizes the requests module to crawl entire websites from a seed file in db/seed.yaml

  • indexer.py — an indexer which exports functionality to store websites in an SQLite database with efficient indexing

  • query.py — a query module which, given a search term, retrieves and ranks websites by three heuristics (frequency, location, distance)


A Flask application in server.py serves a React application that allows users to interact with the project.


Preview

An image of search results for 'C99'


Ubtuntu 20.04 installation

sudo ufw enable
sudo ufw allow 8080
sudo apt update
sudo apt install gunicorn
sudo apt install python3-pip
pip3 install -r requirements.txt
bash setup.sh

Run:

bash start.sh