this post was submitted on 03 Apr 2024
422 points (89.1% liked)

Programmer Humor

33658 readers
337 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] toddestan@lemm.ee 32 points 11 months ago* (last edited 11 months ago) (1 children)

That reminds me back when some time ago, I was tired of dealing with sketchy, and often broken, websites and programs for downloading videos from Youtube. I figured these sorts of programs must be doing something along the lines of downloading the Youtube page, parsing through the massive pile of HTML and Javascript to find the stream, and then saving that to a video file. That seemed like something I could do myself with Python, so I set out to see if I could figure out how to do it.

A few minutes and a couple of web searches later, I discovered that someone else had figured that all out already and I just needed to do "pip install pytube".

[–] MazonnaCara89@lemmy.ml 35 points 11 months ago (2 children)

Have you ever heard about yt-dl?

[–] toddestan@lemm.ee 9 points 11 months ago

I did switch over to yt-dlp some time later as development seems to have slowed on Pytube and yt-dlp seems to be where all the activity is.