python -m venv env
Open terminal. You should see (env). Then
pip install -r requirements.txt
-
Copy
.envfile to directory havingyoutube.pyKEY=
-
Open terminal. U should see a (env) symbol
-
Run the code by
python youtube.py
- Set
videoIdandTESTING = Falseinyoutube.py - Run the code by
python youtube.py - This will generate the comments and captions in '/data' folder
# Set retrain_model as True
spamDetector = SpamDetection(retrain_model=True)- Run the code
python youtube.py - This will generate the data sets in
model/spam/datafolder