The code above is a series of scripts for downloading Youtube and Reddit comments for Youtube videos. It was inspired by the Achievement Hunter series Presented with comment.
To use this code:
- Clone the code
git clone https://github.com/kennib/presented-with-comment
- Go to the directory with the code in it
cd presented with comment
- Get a Youtube API key
- Paste the API key into app.cfg
- Add your reddit username into app.cfg
- Add the names of the Youtube channels you're interested in to app.cfg e.g.
channels = letsplay,achievementhunter
- Install the libraries that the code uses
pip install -r requirements.txt
- Run the script
python main.py
- The comments are in the
comments.db
database now and can be queriedsqlite3 comments.db
- You can retrieve the past week's comments from the database with
sqlite3 < list_comments.sql comments.db > comments.csv