The application allows you to add in multiple Youtube links and download both video and audio, mp4 and mp3 respectively.
- tkinter,
- pytube,
- moviepy,
- threading,
- webbrowser,
- sys,
- os
pip freeze > requeriments.txt
You can download the exe in the output folder, script packaged with pyinstaller.
pip install pyinstaller
# simple configuration
pyinstaller --onefile LNJ_Downloader_YT.py
# works with pyinstaller, but has a graphical interface
pip install auto-py-to-exe
auto-py-to-exe
Relative paths for the images, so pyinstaller can pack them. _MEIPASS lets us know whether we are in development or not
def resolver_ruta(ruta_relativa):
if hasattr(sys, "_MEIPASS"):
return os.path.join(sys._MEIPASS, ruta_relativa)
return os.path.join(os.path.abspath("."), ruta_relativa)
Solution for the executable with pyinstaller, since moviepy required an output and needed the console. This would be like an application log
output = open("output.txt", "wt")
sys.stdout = output
sys.stderr = output
You can also clone this repository and run the script:
phyton .\LNJ_Downloader_YT.py
Important Notice: When using our application, please remember that downloading YouTube content may infringe upon copyright laws and the rights of content creators. We strongly advise responsible and legal usage of downloaded content, ensuring compliance with YouTube's terms of use. Users are solely responsible for their actions, and our application and team cannot be held liable for any misuse or illegal use of downloaded content. Please utilize our application ethically, respecting copyright laws and usage policies.