This script a Python tool that let to search and download videos from YouTube, as well as download the selected video as an audio file. Video search is carried out in 2 ways: by link, by keyword. This script is simple and easy to use.
To use it, you need to complete the following steps:
git clone https://github.com/lazycatcoder/YouTube-Downloader.git
pip install -r requirements.txt
For the script to work correctly, you will need a web driver that can be downloaded from the Selenium official website.
Specify the path to the downloaded web driver:
driver=webdriver.Chrome(executable_path=r"chromedriver.exe", options=options)
🔴 It is important to note that if you use the keyword search, the "num_elems" variable shows how many searched elements will be displayed in the console, the default is 10, which means that a list of the first 10 found videos will be displayed, in order to increase or decrease this list, you need to make changes to the variable "num_elems". Also keep in mind that if too large a value is specified, the script execution may be delayed in time.