This project is a command line version of a YouTube downloader. This version is coded with Python and its pytube library.
Follow these steps to run the YouTube Downloader:
-
Go to the repository homepage.
-
Click on the green "<> Code" button, go to the "Local" tab and download the ZIP.
-
Unpack the zip file.
-
Install Python if not done by going to the official website and following the instructions for your operating system.
-
Open a terminal or a command prompt and go to the project directory. For example:
cd Downloads/cli-youtube-downloader-main/
- Install the necessary packages for the program with:
python3 -m pip install -r requirements.txt
- Navigate with the cd command to the "scr" folder:
cd src/
- Run the main.py file by doing:
python3 main.py
- Follow the on-screen instructions. When you will download a video, you will find it in the "downloads" folder.
If you want to contribute to this project, you are welcome! For this, there are a few steps:
-
Create a fork of this project in your GitHub account.
-
Clone this fork on your machine with:
# make sure that git is installed before doing this git clone https://github.com/your-username/cli-youtube-downloader.git
-
Create a new branch that describes what you want to do by entering:
git checkout -b my-branch
-
Make your changes.
Important: add your GitHub username to the CONTRIBUTORS.md file following the syntax of the creator.
-
Add the files you have modified:
git add .
-
Make a commit where you say everything you’ve done:
git commit -m "change... and add..."
Please start your commit with a lowercase letter to ensure continuity of commit history
-
Push your changes to GitHub:
git push -u origin my-branch
-
Make a pull request by going to the project fork page and clicking on "Contribute > Open pull request". A window will open, and you will be able to explain in more detail all the changes you have made.
-
Validate and then wait for validation... 😊
💡 You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star!
This project is under a MIT license.