Live data from Hacker News

You-get: Dumb downloader that scrapes the web

github.com

61–70 of 154 posts

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

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

Same but I converted to Opus, because I was trying to squeeze it into as little bandwidth as possible. It was mostly speech content and Opus auto detects and optimizes for speech at low nitrates.

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

#62

Earlier quoted context omitted.

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

I don't know why your comment is downvoted because I use this feature of Brave very often and I also exclusively watch YT in Brave mobile (no ads).

There are a lot of people that don't like Brave's business model. But I've never given Brave a dime and turn off their ad network stuff and they've saved me hundreds of dollars on Youtube Premium over the years.

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

#63
post #55

Another library released which lies about what it is to circumvent anti-bot security. Let's just not act surprised when tighter attestation comes in effect.

A future in which YouTube will refuse to stream you data because you didn't pass client attestation is definitely coming and I wish we could stop it. It is a dark future where some of us will accept it, and rest of us will be constantly taking part in a cat-mouse chase in which we glitch out attestation tokens from vulnerable devices to get by.

We need laws against user-agent discrimination.

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

#64
post #47
post #46

Earlier quoted context omitted.

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.

MP3 is accepted by far more players.

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

#65
Anybody else getting this error constantly?

    you-get: [error] oops, something went wrong.
    you-get: don't panic, c'est la vie. please try the following steps:
    you-get:   (1) Rule out any network problem.
    you-get:   (2) Make sure you-get is up-to-date.
    you-get:   (3) Check if the issue is already known, on
    you-get:         https://github.com/soimort/you-get/wiki/Known-Bugs
    you-get:         https://github.com/soimort/you-get/issues
    you-get:   (4) Run the command with '--debug' option,
    you-get:       and report this issue with the full output.
Tried with debug flag but didn't really help

    pattern = str(pattern, 'latin1')
              ^^^^^^^^^^^^^^^^^^^^^^
    TypeError: decoding to str: need a bytes-like object, NoneType found
I was curious to see if it can bypass age restriction (though I tried on non-age-restricted video too with the same error).

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

#67

Earlier quoted context omitted.

I don't know why your comment is downvoted because I use this feature of Brave very often and I also exclusively watch YT in Brave mobile (no ads).

For me, it was as easy as adding a shortcut to the YouTube homepage on Brave that it basically acts like the YouTube app, but with ad blocking built in. It's the only way I watch YT videos on mobile.

You might be interested in GrayJay app.

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

#68
I’m not sure I understand why Bandcamp is on the list of supported sites: they allow you to just download the files on the condition you first pay the artist for them.

The fact you can download it with this tool is because the artist is letting you listen to it for free before buying it. Downloading it with this tool seems totally unnecessary and a bit of a jerk move. Bandcamp hosts mostly small and independent artists and labels.

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

#69

I’m not sure I understand why Bandcamp is on the list of supported sites: they allow you to just download the files on the condition you first pay the artist for them. The fact you can download it with this tool is because the artist is letting you listen to it for free before buying it. Downloading it with this tool seems totally unnecessary and a bit of a jerk move. Bandcamp hosts mostly small and independent artis…

I presume you could subscribe and still use this tool? People use automation tools like this to download things that they already pay for because it saves them the effort of logging into 5 different apps depending on which walled garden it's in.

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

#70
post #56
post #46

Earlier quoted context omitted.

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.

That's really unnecessarily complicated workflow you have. It's achievable by yt-dlp with just 3 flags: --extract-audio --format bestaudio --audio-format mp3

you're unnecessarily making huge assumptions. Some people don't want the bestaudio or mp3
Post reply on HN