PyYoutube2JD allows JDownloader users to get all video links from a Youtube account (or playlist).
It gets every video link and moves them to your Downloads queue as audio files.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version ofJDownloader.
- MyJDownloader API for python.
pip install myjdapi
pip install pyautogui
- Python 3 or higher.
To install PyYoutube2JD, follow these steps:
- Open Jdownloader.
- Go to MyJDownloader > Setup & Login
- Make sure you have got an account (if not create a new one following the instructions at MyJDownloader.org)
- Complete the text boxes with your email, password, and device name (you will need this data later).
- Click on "Connect" button.
- Download PyYoutube2JD.py and open with your edit IDLE to configure and execute it.
To use PyYoutube2JD.py, follow these steps:
- Complete with your data, used on previous steps:
#connect to JDownloader
jd=myjdapi.Myjdapi()
jd.set_app_key("EXAMPLE")
pw='' #Password
mail= '' #User
device = '' #Write your device name, for example: 'JDownloader@MARIANO'
- On folder, rewrite the directory you want to use
##This function will get all the video links from a youtube account
def Obtenerlinks(url,youtuber):
folder = r'C:\Users\MARIANO\\Downloads\Jdownloader\\'+ youtuber + '\\' + fecha #Name the folder you want to store files, I used Date as I said previously
lincs.add_links([{
"autostart": False,
"links": url, #Youtube account link (see examples below)
"packageName": youtuber, #Name you want to call it, it will be used for the folder name
"extractPassword": None,
"priority": "DEFAULT",
"downloadPassword": None,
"destinationFolder": folder,
"overwritePackagizerRules": True
}])
- Call this function as many times as you need (once per youtube account/playlist)
#Start collecting links from this 3 Youtube accounts
Obtenerlinks('https://www.youtube.com/c/CiudadanoZ1984/videos','Ciudadano Z')
Obtenerlinks('https://www.youtube.com/c/mercurialdark1097/videos','Mercurialdark 10')
Obtenerlinks('https://www.youtube.com/c/ElViajeDelHorror/videos','DarkSoulHorror')
- Compile and run the code.
- It will collect all the links and start downloading them as audio files. It will not try to download videos you already have downloaded, so you can use the same code to download only new videos from the same accounts/playlists.
- You can convert them to mp3 (or other formats) with JD build-in scripts (see link: https://board.jdownloader.org/showthread.php?t=70525)
If you want to contact me you can reach me at Mariano_Desivo@hotmail.com.
This project uses the following license: MIT License.