Live data from Hacker News

You-get: Dumb downloader that scrapes the web

github.com

41–50 of 154 posts

Re: You-get: Dumb downloader that scrapes the web

#41
For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0]

youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborate workaround involving downloading the file to my VPS first over SSH, then downloading it to my phone, until I realized my phone browser can consume the URL directly, so I set up a PHP frontend for `youtube-dl -G -f bestaudio {url}`

It's no longer online and I lost the code, but it was like one line of code.

I mention this because you-get seems to support the same usecase (via --url / -u), so I wanted to let people know how useful this is!

(While it was online I shared it on some forums and got very positive feedback, people used it for audiobooks etc.)

[0] Also playing with screen off saves 80% battery life! YouTube knows these facts and that's why they made background playback (which fetches only audio stream) a paid feature...

Re: You-get: Dumb downloader that scrapes the web

#42

Earlier quoted context omitted.

The Chinese version of the text has an extra header line that translates to "to prevent abuse via GitHub Issues, we are not accepting general issues". An earlier commit has this for the English text: `you-get` is currently experimenting with an aggressive approach to handling issues. Namely, a bug report must be addressed with some code via a pull request. https://github.com/soimort/you-get/commit/75b44b83826b3c2d9a.…

I can get this, but I aggressively report accounts and issues. I'm not sure how GitHub handles them but they seem to not come back. Though what I'm unsure how to deal with is legitimate users being idiotic. For example, recently one issue was opened that asked where the source code was. Not only was there a directory named "src" but there were some links in the readme to specific parts. While I do appreciate GitHub a…

The solution is to ignore them and close their issue. Open source maintainers have enough to worry about and are unpaid, it's okay to be a little dictatorial when it comes to "bad questions".

Re: You-get: Dumb downloader that scrapes the web

#44
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

I think it's -x to just rip audio now

Re: You-get: Dumb downloader that scrapes the web

#45
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

Brave Mobile browser allows turning on background video audio thus eliminating the need for YouTube Premium and similar subscriptions.

Re: You-get: Dumb downloader that scrapes the web

#46
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

That’s the -F option to list all the formats, including the audio streams. Pick the audio format with -f to download the audio. I usually pick the .m4a format and then run it through ffmpeg to convert to mp3.

Re: You-get: Dumb downloader that scrapes the web

#47
post #46
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

That’s the -F option to list all the formats, including the audio streams. Pick the audio format with -f to download the audio. I usually pick the .m4a format and then run it through ffmpeg to convert to mp3.

What’s the point of converting it to mp3? AAC inside an m4a container usually has better sound quality than similarly compressed mp3, and definitely better than reencoding.

Re: You-get: Dumb downloader that scrapes the web

#48
post #3

Can someone explain why this is better than yt-dlp

How did you infer better than yt-dlp? I think the more the better when it comes to this space as google fights back.

But some information what the differences to ytdlp are and what the reasons for starting an entirely new project were, would still be helpful.

(Also, a multitude of tools isn't really all that helpful if they all stop working in the same instant because they all relied on the same APIs etc)

Re: You-get: Dumb downloader that scrapes the web

#49
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

BTW if you browse YouTube with Firefox browser on Android you can play back YouTube videos with the screen locked using background player fix extension.

Re: You-get: Dumb downloader that scrapes the web

#50
post #37
post #27

Earlier quoted context omitted.

Did you (or anyone) in this thread look to see exactly what they are looking for with their provided examples? https://github.com/soimort/you-get/pull/2680/commits/313b8d2... You do not need to know Python deeply to construct what they are expecting. They’re not actually looking for a unit test or something.

> Did you (or anyone) in this thread look to see exactly what they are looking for with their provided examples? I did. And I looked at all examples of “good commits”, not just the trivial ones. https://github.com/soimort/you-get/pull/2685/files That’s already complex for someone unfamiliar with the software (which might nonetheless be able to open a competent bug report).

[deleted]
Post reply on HN