pip3 install flask
virtualenv flask
cd flask
source bin/activate
git clone --depth=1 https://github.com/twintproject/twint.git
cd twint
pip3 install . -r requirements.txt
pip3 install twint
Source: twintproject/twint#1297
//put recommendation.py under the /twint
//create a file named "web" in the twint file
//put data, lib, icon and html files in the web directory
pip install eel
Source: https://github.com/ChrisKnott/Eel
python recommendation.py
Error MSG: "[IMPORTERROR] cannot import name 'CeilTimeout' from 'aiohttp.helpers'"
Solution: pip install aiohttp==3.7.0 //in the flask
//run in the twint directory
flask/
twint/
recommendation.py
web/
data/ --> Preprocessed_data.csv
lib/
icon/
welcome.html
visualization.html
selection.html