youtube-data
youtube-data copied to clipboard
Jupyter Notebook to analyze your YouTube data.
youtube-data
Telegram bot and Jupyter Notebook to analyze your YouTube data.
Screenshot
The notebook can do more than just tell you what creators you watch the most, so just try it out.
Run the bot
Requirements
- install docker
Run it
docker build -t youtubebot-template .
docker run -e TELEGRAM_TOKEN='XXXX' --rm --name youtubebot-container youtubebot-template
Replace XXXX
with your telegram token.
Note: This way all data will be lost once you shut down the bot. To prevent this you can start the bot with a mounted docker volume.
docker build -t youtubebot-template .
docker volume create youtubebot-volume
docker run -d --restart unless-stopped \
-e TELEGRAM_TOKEN='XXXX' \
--mount type=volume,source=youtubebot-volume,target=/app/data \
--name youtubebot-container youtubebot-template
Run the jupyter notebook
Requirements
- Install jupyter lab Website
- Add the ipywidgets extension to jupyter lab Website
- Install python libaries used for this notebook
pip install pandas numpy matplotlib ipywidgets
Run it
- Download your youtube data (and select Format=JSON) Website
- Copy the folder "Takeout" into the folder with the Notebook. (Note: I just got a notice that this only works if your language is set to english. If that is not the case you need to modify the path in the first code-cell. This bug will be fixed in the next commits.)
- Run the notebook with
jupyter lab PATH-TO-NOTEBOOK