Giter Club home page Giter Club logo

yt-favs's Introduction

yt-favs

Python script using the Youtube-API and youtube-dl to download and keep track of your Youtube favorites

If you want to keep a backup copy of your favorite videos, it is quite inconvinient to download them manually and to keep track of which videos are new and which you already have saved. This simple script can automate this task for you.

Prerequisites

Setup

  1. Clone this repo
    git clone [email protected]:n0ctua/yt-favs.git
  2. Create and activate an isolated Python environment
    python3 -m venv ./venv
    source venv/bin/activate
  3. Install requirements
     pip install --upgrade -r requirements.txt
  4. Setup Credentials
    1. Visit your Google API Console
    2. Create a new project, e.g. yt-favs
    3. In the library panel, find and enable the YouTube Data API v3 for this project
    4. In the credentials panel, create an OAuth 2.0 client ID and set the application type to TVs and Limited Input devices
    5. Download the JSON file that contains your OAuth 2.0 credentials, rename it to client_secret.json and move it to the project directory
    6. When you run the script for the first time, your browser will open and you have to grant this app the permission to access your Youtube account. You can always check which third-party apps can access your Google account here.

Usage

source venv/bin/activate
python3 yt-favs.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.