Code Monkey home page Code Monkey logo

yt-downloader's Introduction

Youtube Downloader

Python Streamlit

General

A CLI (Command Line Interface) application, that allows the user to download and store videos from YouTube. The downloader offers two options:

  1. Download and store a single video
  2. Download and store multiple videos from different artists

The downloaded videos can be stored either as .mp3 or .mp4 files.

Setup

In order to get the app running, first you need to clone this repository. This can be done with the command:

git clone https://github.com/Jimlibo/YT-Downloader.git

Then to download the necessary python packages, run the command:

pip install -r requirements.txt

Note: You need to be in the home directory of this project in order to run the above command.

Usage

The downloader has two basic modes: single and mass. The first one downloads a single video and stores it either as a .mp3 or as a .mp4 file.

Single Mode

To run the downloader in single mode, run the commands:

cd source_code
python downloader.py single --video-url example_url --dest-file example_file --audio-only

Notes:

  • Parameter dest-file is optional. If not specified, the video will be downloaded with the default name inside the directory from which the script was executed.
  • If you want the video to be downloaded as .mp4 file, ignore the parameter audio-only.

Mass Mode

In mass mode, the downloader takes as input a text file containing different artists' names, one name at each line. It also takes as input an integer N, that defines how many song from each artist shall be downloaded.

To run the downloader in mass mode, run the commands:

cd source_code
python downloader.py mass --search-file sample.txt --dest-dir sample_dir --amount N --audio-only

Notes:

  • Parameter amount expects an integer value that represents the number of songs of each artist that will be downloaded
  • If you want the videos to be downloaded as .mp4 file, ignore the parameter audio-only.

Search-file format example

An example of what a valid search file would look like, is this:

Imagine Dragons
The Weekend
OneRepublic
David Guetta



You can read more about the downloader usage in its documentation

yt-downloader's People

Contributors

jimlibo avatar

Watchers

 avatar

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.