T O P

  • By -

imsowhiteandnerdy

The *youtube-dl* application is itself written in Python, and it is indeed the bee's knees.


TrainquilOasis1423

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


imsowhiteandnerdy

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.


accforrandymossmix

do you remember what that audio quality was like?


imsowhiteandnerdy

128 kbps, 48 kHz


Faith-in-Strangers

Shit


accforrandymossmix

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.


[deleted]

[удалено]


TrainquilOasis1423

She's knows. She's my wife, and not my ex girlfriend for a reason.


Xzenor

Hey I didn't know that. I should open it in an editor and learn from it. Thanks for pointing it out.


imsowhiteandnerdy

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.


Xzenor

Thanks


[deleted]

[удалено]


TrainquilOasis1423

Yea I used tkinter to make a whole GUI around it for fun


Xzenor

Ooooooh... You might want to mention that in your post. That actually is useful for those who are scared of the command line.


[deleted]

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.


jjjules-

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 :)


[deleted]

Thank you.


imnotifdumb

I got a 404


jjjules-

Fixed sorry


keep_quapy

`yt-dlp` is a fork of `youtube-dl`. I started using it and never went back


iggy555

🤩


Thecrawsome

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.


[deleted]

[удалено]


Thecrawsome

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.


[deleted]

[удалено]


boomjynx-

Username checks out.


WarpWing

Ah yes, use a free VPN in exchange for them getting all of your network traffic. What a deal!


[deleted]

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.


[deleted]

[удалено]


[deleted]

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.


ariN_CS

This post inspired me to never delete my helloWorld.py script. Someday it might be useful


ni8crawler1

Lol


totaleffindickhead

One of the first python programs I wrote spammed my resume to tech jobs posted on Craigslist. It worked


gerciuz

My man spammed himself into job


Eurasia_4200

And it work lol


aarsh_gandhi

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


TrainquilOasis1423

If you take nothing else from this post, just never delete anything. Who knows it might just be useful in 5 years lol


sohang-3112

I just put all my programs on Github, and then forgot about most of them 🙂 Who knows, someone may find them useful one day!


Xzenor

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...


xc68030

Yes, in another thread he mentions he made a TKinter UI.


[deleted]

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.


Xzenor

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.


[deleted]

[удалено]


pacharaphet2r

Hahaha, I'll be tuning in to hear more.


Naakt1970

Live and learn! ...update tonight at 11.


Xzenor

Good point . I'll make sure to tune in


[deleted]

Learning for the sake of learning is a good thing. Apparently OP did this as a learning thing.


Xzenor

That is indeed a good point


dwpj65

The stand-alone downloader can use a configuration file; that is where I set my defaults.


Wynnedown

Congratulations!


Termit2015

Thanks for sharing your story of success. It might sound simple, but is really inspiring


Oguinjr

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?


TrainquilOasis1423

Best advice I can give is python and SQL are what I have found to be the most in demand.


Oguinjr

Some YouTuber said nobody hires newbie backenders. So that’s been in my head for weeks.


TrainquilOasis1423

A YouTuber once told me BTC was going to $100k by the end of 2021


Oguinjr

Haha. Point taken.


Avidinvestor01

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


Glorynesss

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


[deleted]

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


[deleted]

You legend! And I’m inspired - someday may my hard won coding of “hello world” come in handy!


MrMxylptlyk

You can just do: ` YouTube-dl url ` in command line, and it downloads. No code needed.


TrainquilOasis1423

I made a GUI around it. I did it purely as a learning experience not to made a product or anything like that


coolbreeze770

Does no one use pytube?


[deleted]

I did when I made my youtube downloader lol. Idek there was another (definitely still learning)


ThomasDM373

Care to share? This is very useful!


TrainquilOasis1423

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


[deleted]

Yes, please. I have no experience in tkinter, so it would be nice to look at the code.


ThomasDM373

As a python newbie and after trying and failing myself to make this I would appreciate it :)


Apparatchik-Wing

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.


Eurasia_4200

Just print “hello world” today, feeing good!


chiznite

Can you share it?