Skip to content

borosuk/youtube-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube FastAPI wrapper

I have my own little YouTube channel (https://youtube.com/@darxyde), and I just realised there is no easy way to rename multiple videos in an ordered way like you would with your mp3 files for example.

YouTube provides an API to manage the videos, and as such I think this could be an interesting project to do.

My plan is to use Python and fastAPI to create a wrapper around YouTube's own api.

Available endpoints

Authorization

  • /authorize
  • /oauth2callback
  • /revoke
  • /clear

YouTube

  • /channel
  • /playlists
  • /videos

TODO:

  • refactor authorization calls to use FastAPI's Depends
  • write a more dynamic 'last_path'

Prerequisites

  • Python 3.9+

  • The pip package management tool

    sudo apt install python3-pip

  • The Google APIs Client Library for Python:

    pip install --upgrade google-api-python-client

  • The google-auth-oauthlib and google-auth-httplib2 libraries for user authorization

    pip install --upgrade google-auth-oauthlib google-auth-httplib2

  • FastAPI

    pip install fastapi

  • Uvicorn

    pip install "uvicorn[standard]"

  • DotEnv

    pip install python-dotenv

  • ItsDangerous (requirement for starlette)

    pip install itsdangerous

  • Email validator (optional requirement for the pydantic validator)

    pip install email-validator

Links

YouTube Data API

FastAPI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages