Skip to content

vitaliishchudlo/youtube_statistics_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Introduction

YouTube Statistics Graph

The idea of this script was laid in a test task. The test task was given to me by the Ukrainian IT company - Media Group Ukraine, for the position of Python Data Engineer.

Main aim

  • The main purpose of the script was - getting statistics (count of views, likes, dislikes, comments);
  • The YouTube channel is indicated by the user himself (Name, ID, link);
  • Data is taken from each video on the channel from the first to the last day of the previous month;
  • The YouTube API is used to retrieve data;
  • The result is displayed on the graphs.

How to run the script:

  1. Clone the project from GitHub and change directory into project:
  $ git clone https://github.com/vitaliishchudlo/youtube_statistics_graph.git
  $ cd youtube_statistics_graph/
  1. Create & active virtual environment and install all the necessary packages:
  $ python3 -m venv venv
  $ . venv/bin/activate
  $ python3 -m pip install -r requirements.txt
  1. Run the script:
  $ python3 app.py

If the following error occurs:

"UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure."

  $ sudo apt-get install python3-tk