python -m venv env
Open terminal. You should see (env). Then
pip install -r requirements.txt
-
Copy
.env
file to directory havingyoutube.py
KEY=
-
Open terminal. U should see a (env) symbol
-
Run the code by
python youtube.py
- Set
videoId
andTESTING = False
inyoutube.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/data
folder