Note:
You need to use Linux because the module geckodriver-autoinstaller it uses does not work for Windows anymore.
I use:
Ubuntu 23.10
Selenium 3.14.1
Example JSON:
[
{
"title": "INTRIGUING Psychology Fact",
"description": "#Psychology #SelfDoubt #MentalWellness Discover the internal struggles we face and how to combat self-doubt. Music: Lost And Found - Purrple Cat",
"tags": "Psychology, SelfDoubt, MentalWellness",
"schedule": "11/14/2023, 11:55"
},
{
"title": "CAPTIVATING Crush Fact",
"description": "#Crushes #Humor #HeartConnection Explore the role of humor in building a connection with your crush. Music: Lost And Found - Purrple Cat",
"tags": "Crushes, Humor, HeartConnection",
"schedule": "11/14/2023, 23:55"
},
]
I did not bother to fix the playlist issue because it is very easy to do that in yt studio.
I also wrote a bash script that uploads mutiple videos. it works when you number the video files like 1.mp4 2.mp4...
It askes where you want to start in case the script stopped somewhere in the middle. Also DONT forget a firefox profile.:
#!/bin/bash
metadata_file="metadata.json"
read -p "Enter the starting number for the videos and metadata: " start_number
total=$(jq length "$metadata_file")
for ((i=0; i<$total; i++)); do
metadata=$(jq ".[$((start_number - 1 + i))]" "$metadata_file")
python3 upload.py --video "$((start_number + i)).mp4" --meta <(echo "$metadata") --profile ~/Documents
wait $!
sleep 1
done
Note: You need to use Linux because the module geckodriver-autoinstaller it uses does not work for Windows anymore.
I use: Ubuntu 23.10 Selenium 3.14.1
Example JSON:
I did not bother to fix the playlist issue because it is very easy to do that in yt studio.
I also wrote a bash script that uploads mutiple videos. it works when you number the video files like 1.mp4 2.mp4... It askes where you want to start in case the script stopped somewhere in the middle. Also DONT forget a firefox profile.:
Constant.py:
init.py: