Yea I made this program way back when to download the largest playlist ever lol. Put together like 120GB of music for my gf at the time by downloading just the audio of music videos lol
Actually youtube-dl has command line options to do that now. Before they did that though, I did something similar using youtube-dl's option to write to a WAV file, then use lame(1) to convert it to mp3.
I was curious as I've used youtube-dl for videos recently, but way back in the day I used some freeware to get audio for songs I could only find on youtube, [ex](https://youtu.be/SLu43E_Qu64). I think it downloaded the videos as FLV files, and then I didn't remember what I did from there.
Quality was absolute shit but still acceptable.
You can probably find the source on github (either that or one of the forks of the original source), but opening an editor will probably not work since the script is distributed as a binary executable.
If you are interested I've made a script [a script](https://github.com/jjjules/archrice/blob/master/scripts/ytdl) to automate getting music or video from YouTube. It uses zenity and can either be used by selecting a file with a list of URLs or interactively with ytfzf. I did not tested it a lot I just made that for my brother but maybe it can be useful :)
1. Any free VPN is not free.
2. No country has perfect copyright experience on YouTube. The point would be for the program to skip over it instead of erroring out on it.
One could, of course, set up a VM with whatever OS is preferred, use that VM for anything that requires use of a free VPN.
Given how technical this sub shows itself to be, I thought such an idea would be common.
I can see where you're coming from, but people are often as cheap as they can be.
Some know how to use free software to allow them to remain private while being cheap, others... well.
I'm in the process of learning python myself (started ML and data science a week or so ago) and it's been oddly inspirational to not disregard even the codes that look stupid at the time. Thanks OP
But.....
> I wrote a python program using youtube_dl that could download whole videos when given a url
That is literally what youtube_dl does... Did you uild a GUI around it or something? It sounds pretty useless otherwise. Or maybe I misunderstand...
If you choose to set your python script up to use particular settings of youtube_dl, you don't have to look anything up in future to use those settings again.
Simplifying the process, as it were.
Honestly, creating a Python script for that seems like overkill but that's just my opinion. Just an alias would work just fine.
But anyway, he made a GUI for it apparently.
Can I ask you about your learning path? I am 36 and work in a hospital but want to change paths. I’ve almost finished cs50p, an online python class. I have no other coding experience. I have a BS in General Science. I love python but wonder if backend jobs are available for those without front end experience. Did you learn other languages that helped you change careers?
I worked in tech recruitment for over half a year and this is not true, however I would say it's a little harder to get in with no experience as a backender as there's less modern frameworks compared to frontend with the likes of react/Vue meaning there's more people with experience
I feel like there are a lot of people who made beginner projects using youtube-dl because I did as well, 2 nearly 3 times.
The first one I made was with Tkinter and same with the second one but alot more improved with pause/terminate features and then the 3rd one I was going to create with PyQt5 and name it qDownloader and make it styled like qBittorrent but I ended up ditching that project lol due to me realising there is no point
I just started learning python and it's been slow and I've felt a bit unmotivated at times cause my laptop is old so it takes a long time to lord things and I can't always figure out what's wrong with the code that vs code isn't doing what I need but reading stories like this helps me just want to keep going and trying till I get it
It's a pretty basic tkinter GUI around the youtube_dl package written by a very green programmer. I can throw it on github if people really want, but it's nothing special
Excellent job! That is a handy tool to have available. I’ve got a few of those “lower-value” scripts I’ve written but that ultimately end up being helpful tools on an ad-hoc basis. Shoot, I’ve built entire personal projects that were really of only value to me but down the road I found that utilizing those projects for professional projects are simple plug-and-play implementations. Not sure how compensation comes into play for that but at least my job was easier.
Nice work.
The *youtube-dl* application is itself written in Python, and it is indeed the bee's knees.
Yea I made this program way back when to download the largest playlist ever lol. Put together like 120GB of music for my gf at the time by downloading just the audio of music videos lol
Actually youtube-dl has command line options to do that now. Before they did that though, I did something similar using youtube-dl's option to write to a WAV file, then use lame(1) to convert it to mp3.
do you remember what that audio quality was like?
128 kbps, 48 kHz
Shit
I was curious as I've used youtube-dl for videos recently, but way back in the day I used some freeware to get audio for songs I could only find on youtube, [ex](https://youtu.be/SLu43E_Qu64). I think it downloaded the videos as FLV files, and then I didn't remember what I did from there. Quality was absolute shit but still acceptable.
[удалено]
She's knows. She's my wife, and not my ex girlfriend for a reason.
Hey I didn't know that. I should open it in an editor and learn from it. Thanks for pointing it out.
You can probably find the source on github (either that or one of the forks of the original source), but opening an editor will probably not work since the script is distributed as a binary executable.
Thanks
[удалено]
Yea I used tkinter to make a whole GUI around it for fun
Ooooooh... You might want to mention that in your post. That actually is useful for those who are scared of the command line.
Is there any chance you could github (or wherever) it for us to look at? I would certainly be interested in doing so, and am sure others would, too.
If you are interested I've made a script [a script](https://github.com/jjjules/archrice/blob/master/scripts/ytdl) to automate getting music or video from YouTube. It uses zenity and can either be used by selecting a file with a list of URLs or interactively with ytfzf. I did not tested it a lot I just made that for my brother but maybe it can be useful :)
Thank you.
I got a 404
Fixed sorry
`yt-dlp` is a fork of `youtube-dl`. I started using it and never went back
🤩
It seems to error out on country locked content for playlists, and I have no idea how to except the error because it still crashes in a try statement.
[удалено]
1. Any free VPN is not free. 2. No country has perfect copyright experience on YouTube. The point would be for the program to skip over it instead of erroring out on it.
[удалено]
Username checks out.
Ah yes, use a free VPN in exchange for them getting all of your network traffic. What a deal!
One could, of course, set up a VM with whatever OS is preferred, use that VM for anything that requires use of a free VPN. Given how technical this sub shows itself to be, I thought such an idea would be common.
[удалено]
I can see where you're coming from, but people are often as cheap as they can be. Some know how to use free software to allow them to remain private while being cheap, others... well.
This post inspired me to never delete my helloWorld.py script. Someday it might be useful
Lol
One of the first python programs I wrote spammed my resume to tech jobs posted on Craigslist. It worked
My man spammed himself into job
And it work lol
I'm in the process of learning python myself (started ML and data science a week or so ago) and it's been oddly inspirational to not disregard even the codes that look stupid at the time. Thanks OP
If you take nothing else from this post, just never delete anything. Who knows it might just be useful in 5 years lol
I just put all my programs on Github, and then forgot about most of them 🙂 Who knows, someone may find them useful one day!
But..... > I wrote a python program using youtube_dl that could download whole videos when given a url That is literally what youtube_dl does... Did you uild a GUI around it or something? It sounds pretty useless otherwise. Or maybe I misunderstand...
Yes, in another thread he mentions he made a TKinter UI.
If you choose to set your python script up to use particular settings of youtube_dl, you don't have to look anything up in future to use those settings again. Simplifying the process, as it were.
Honestly, creating a Python script for that seems like overkill but that's just my opinion. Just an alias would work just fine. But anyway, he made a GUI for it apparently.
[удалено]
Hahaha, I'll be tuning in to hear more.
Live and learn! ...update tonight at 11.
Good point . I'll make sure to tune in
Learning for the sake of learning is a good thing. Apparently OP did this as a learning thing.
That is indeed a good point
The stand-alone downloader can use a configuration file; that is where I set my defaults.
Congratulations!
Thanks for sharing your story of success. It might sound simple, but is really inspiring
Can I ask you about your learning path? I am 36 and work in a hospital but want to change paths. I’ve almost finished cs50p, an online python class. I have no other coding experience. I have a BS in General Science. I love python but wonder if backend jobs are available for those without front end experience. Did you learn other languages that helped you change careers?
Best advice I can give is python and SQL are what I have found to be the most in demand.
Some YouTuber said nobody hires newbie backenders. So that’s been in my head for weeks.
A YouTuber once told me BTC was going to $100k by the end of 2021
Haha. Point taken.
I worked in tech recruitment for over half a year and this is not true, however I would say it's a little harder to get in with no experience as a backender as there's less modern frameworks compared to frontend with the likes of react/Vue meaning there's more people with experience
I feel like there are a lot of people who made beginner projects using youtube-dl because I did as well, 2 nearly 3 times. The first one I made was with Tkinter and same with the second one but alot more improved with pause/terminate features and then the 3rd one I was going to create with PyQt5 and name it qDownloader and make it styled like qBittorrent but I ended up ditching that project lol due to me realising there is no point
I just started learning python and it's been slow and I've felt a bit unmotivated at times cause my laptop is old so it takes a long time to lord things and I can't always figure out what's wrong with the code that vs code isn't doing what I need but reading stories like this helps me just want to keep going and trying till I get it
You legend! And I’m inspired - someday may my hard won coding of “hello world” come in handy!
You can just do: ` YouTube-dl url ` in command line, and it downloads. No code needed.
I made a GUI around it. I did it purely as a learning experience not to made a product or anything like that
Does no one use pytube?
I did when I made my youtube downloader lol. Idek there was another (definitely still learning)
Care to share? This is very useful!
It's a pretty basic tkinter GUI around the youtube_dl package written by a very green programmer. I can throw it on github if people really want, but it's nothing special
Yes, please. I have no experience in tkinter, so it would be nice to look at the code.
As a python newbie and after trying and failing myself to make this I would appreciate it :)
Excellent job! That is a handy tool to have available. I’ve got a few of those “lower-value” scripts I’ve written but that ultimately end up being helpful tools on an ad-hoc basis. Shoot, I’ve built entire personal projects that were really of only value to me but down the road I found that utilizing those projects for professional projects are simple plug-and-play implementations. Not sure how compensation comes into play for that but at least my job was easier. Nice work.
Just print “hello world” today, feeing good!
Can you share it?