Giter Club home page Giter Club logo

youtubedownload's Introduction

YouTube Download

A simple application written in Python3 to download YouTube videos. These videos can also be downloaded as audio.

GUI Screenshot

GUI Screenshot Linux

Disclaimer

This software is not to be used to violate any laws.

Download Pre-Built Binaries

Unless you want to use the CLI or do something with the scripts themselves, you are most likely looking for the binaries.

Scripts Installation

  1. Clone the Repo
cd YouTubeDownload
# run pipenv shell
pipenv shell
# Then install the dependencies
pipenv install
# To Run the script 
python3 script.py

Usage

You can either run the GUI (qt_gui.py), the script (script.py) directly for interactive mode, or use the command line arguments on the script (script.py).

python3 qt_gui.py
python3 script.py
python3 script.py -u rfscVS0vtbw -l
python3 script.py -u rfscVS0vtbw -o videos/ -f my_downloaded_video
python3 script.py -u rfscVS0vtbw -i 278 -o videos/ -f my_downloaded_itag_video
python3 script.py -u rfscVS0vtbw -o audio/ -f my_downloaded_audio --audio-only
python3 script.py --help

-u --url            YouTube URL or YouTube Video ID to download
-l --list-streams   List available streams for this YouTube Video 
                    instead of download. Use -a/--audio-only to list audio streams.
                    Download specific stream with the 
                    itag ID and -i/--itag argument.
-i --itag           Stream ITAG to download for given YouTube Video/ID.
                    List streams with -l/--list-streams argument.
                    If ITAG is not provided, default stream will be downloaded.
                    Downloading with ITAG ignores -a/--audio-only.
-o --output-path    Output Directory Path
-f --filename       Override the output filename. Does not override file extension
-p --proxy          Proxy to use. Ex http://xxx.xxx.xxx:8080. NOTE: You need https proxy for https URL!
-a --audio-only     Download Audio Only

NOTE: If you are using a proxy, you need https proxy for https URL!

Here's the demo on how to use it

view demo

Building Binaries

If you want to build binaries, make sure you have pywin32 installed (Windows only), as well as pyinstaller. Then run the following command from the script directory.

pyinstaller --clean --onefile pyinstaller.spec

The binary will be put into the dist directory within the script directory.

Contributing

If you would like to suggest changes feel free to fork this repo and create PR or submit an issue

youtubedownload's People

Contributors

jslay88 avatar hbmartin avatar vincod 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.