This is an indonesian search engine program that use tf.idf algorithm. this program built with python3, flask and MySQL.
- clone this repo
- install the requirement library with pip:
- flask
- flask-wtf
- Sastrawi
- mysql-connector
- beautifulsoup4
- import
search_engine.sql
to your search_engine MySQL database
there are 2 main component in this program
- main search engine
- add article from url and store to database
To save the article and store to database, run add_article.py
in tfidf directory.
python3 add_article.py http://example.com/some_interesting_page.php
To run the search engine, run the flask app (app.py
) and go ahead to the localhost:5000
.
python3 app.py