Skip to content

Measures the mean duration for Pirula's videos

License

Notifications You must be signed in to change notification settings

lcscosta/pirula-time

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pirula-time

Measures the average duration of Pirula's videos

This is intended to be run on AWS.

The app is a Python 3.12 Flask App.

The update is called hourly, gathers youtube data from the Google APIs, and stores it on a sqlite; which is then read by the app.

Contributions/Contribuições

You're welcome to edit if you have any funny jokes.

Development/Desenvolvimento

Create a .env with your Google API Token. CHANNEL_ID is the Canal do Pirula Youtube Channel ID.

GOOGLE_API_KEY=<your-secret>
CHANNEL_ID=UCdGpd0gNn38UKwoncZd9rmA
FLASK_DATABASE=pirula.sqlite
ENVIRONMENT=development

Install python dependencies

poetry install

Create database

flask --app pirula_time init-db

Execute Flask application

flask --app pirula_time run --debug

(Optional) To update your database with new videos use:

flask --app pirula_time update-db

About

Measures the mean duration for Pirula's videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.2%
  • HTML 28.0%
  • CSS 0.8%