Skip to content

MagicTearsAsunder/YouTube_Analyzer

Repository files navigation

Your YouTube Usage Analysis

A Django web application to upload, analyse, store and remove your Youtube data. Take your data from https://takeout.google.com/. And authentication system with e-mail confirmation.

See the example: Video Preview

Basic Data:

Wordcloud of searches:

Overall year activity:

Activity by hour and weekday:

Top 5 watched videos and Top 5 viewed channels:

Setup

1. Install Python3 interpreter

Additional information on https://www.python.org/downloads/

2. Clone this repository into your directory

$ mkdir myproject && cd myproject
$ git clone https://github.com/MagicTearsAsunder/YouTube_Analyzer.git
$ cd TODO

3. Install requirements

$ pip install -r requirements.txt

4. Set you Google account credentials for authentication system

In shindeiru/settings.py add your Google account credentials to EMAIL_HOST_USER and EMAIL_HOST_PASSWORD. If you don't have Google account - create it. Alternitavely, you can use other SMTP host. Instructions, how to set Django SMTP described here.

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
# TODO:
EMAIL_HOST_USER = ""
# TODO:
EMAIL_HOST_PASSWORD = ""
EMAIL_USE_TLS = True

5. Make migrations and run server

python manage.py makemigrations 
python manage.py migrate 
python manage.py runserver

Run it in Docker

docker-compose up

Register and upload your zip file

1. Download your YouTube data from https://takeout.google.com/. Deselect all, choose Youtube:

2. Press Multiple formats and choose JSON:

3. Select .zip file type:

4. Upload it to form.

Enjoy it!