So I made a Youtube Downloader without ads : r/InternetIsBeautiful Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/InternetIsBeautiful icon
r/InternetIsBeautiful icon
Go to InternetIsBeautiful
r/InternetIsBeautiful

/r/InternetIsBeautiful has shut down as part of the coordinated protest against Reddit's exorbitant new API pricing. Please don't message to request access. Details are available here: https://www.theverge.com/2023/6/5/23749188/reddit-subreddit-private-protest-api-changes-apollo-charges This community will not grant access requests during the protest.


Members Online

So I made a Youtube Downloader without ads

Share
Sort by:
Best
Open comment sort options
u/Znuffie avatar

Someone will quickly discover the realities of hosting a public video downloader on non-dedicated hardware for the internet.

u/MisterEmbedded avatar

Lawd have mercy if he doesn't caches.

Who doesn’t like Cache eviction

u/Dashing_McHandsome avatar

All my homies love LRU

More replies

Dude, love that RCR avatar.

u/MisterEmbedded avatar

Haha, I love RCR

More replies

is that alex from river city? hahahha

u/MisterEmbedded avatar

yeah, haha

More replies
More replies
u/kkjdroid avatar

Is OP not just hosting JS to do it client-side? That would make it no heavier than any other webpage.

u/DemIce avatar

Is OP not just hosting JS to do it client-side?

No. POST request to the server, responds with the video payload.

u/TheGoldBowl avatar

Ouch. AWS bill this month is gonna be brutal.

u/maxleng avatar

ELi5?

They're saying OP could've used JavaScript (JS) to write a program so that the user's computer does all the downloading on its own. This would've made it so the server (whatever OP is running this website on) only deals with the normal load, in terms of computing and bandwidth, any other website would deal with. Instead, users are sending messages to the server, requesting the server send the user the videos. Meaning the server has to deal with the normal load of a website, the added load of the messages, and the massive load of retrieving and sending those large video files to the user.

more replies More replies
u/DemIce avatar

Meaning that your browsers sends a request to the server (in this case the yt2file.com server), and the server responds with the requested data (in this case, the video file).

Compare that to what the other commenter was suggesting, where the yt2file.com website just hosts a basic webpage with some javascript (code that runs in the browser), and that javascript code requests the data from youtube directly, meaning that the yt2file.com server is not involved in any way other than serving that initial webpage.

There's pros and cons to both.

Letting the server handle it means you necessarily share the video you want to download with that server, which maybe you don't want to do (but realistically... most people aren't going to care). On the down side for the server owner, it also means that their server has to first download the video from youtube, potentially transcode it, and then effectively forward it back to you, meaning they incur bandwidth costs twice and potentially processing costs as well.

Letting pure javascript handle it in the browser avoids those, but is typically limited to the exact formats made available by youtube, so no transcoding for compatibility and the like.

For an example of the latter that can be used as a bookmarklet (desktop browsers; technically works on mobile as well but mobile browsers don't offer the convenience factors of bookmarklets so much): https://ethanaobrien.github.io/youtube-downloader/index.html

More replies

Damn, that's hardcore.

More replies
[deleted]
[deleted]

Comment deleted by user

u/kkjdroid avatar

Oh. Yeah, unless OP has found a way to redirect requests to a hidden YouTube endpoint that serves MP4 instead of TLS, they're about to get a nasty bill from their hosting provider.

more reply More replies
More replies
[deleted]
[deleted]

Comment deleted by user

u/83749289740174920 avatar

Its free. He might be clueless or he could be testing the server. Harvesting meta data of users.

Would you explain what issues you forsee?

u/aggyaggyaggy avatar

Legal, bandwidth, scaling ($$$), privacy, rate limiting automation...

More replies
u/sildish2179 avatar

Looks like that someone has discovered exactly what you predicted.

u/SurprisedPotato avatar

503 error now...

u/AccountMr avatar

We did it reddit!

More replies
[deleted]
[deleted]

SSL_ERROR_RX_RECORD_TOO_LONG

Just came back to this thread because the website is already dead

u/viebs_chiev avatar

…still down

More replies
u/_SpiderDisco avatar

Were you surprised that the domain yt2file was available? That's actually pretty clean and easy to remember.

I know right? 😄 I was really suprised.

More replies
More replies
u/Hellkids2 avatar

The fact even with YT Premium you have to be online at least every 30 days to keep what you downloaded is stupid. I guess that’s how they force you to subscribe to the service.

Ignore everything below. Just use NewPipe. Open source. Free. No ads. Background playback. Download files. Everything you want. You're welcome in advance.

no accounts support, no way to sync your subscriptions between devices

I've always wondered if I was using it wrong. I can understand the appeal of newpipe if you're looking for a specific video, but if you jusy want to go through what your subs have uploaded then it doesn't really work

if that's your only device it can import your subscriptions and then store them locally, but also that may trigger rate limiting when polling multiple channels to find new videos, the app that Louis Rossman promoted ended up doing that early on, no idea how that behaves today

u/Spicy_pepperinos avatar

Huh? You can import your subscriptions from actual YouTube.

more reply More replies
More replies
u/mplsleprechaun avatar

Revanced

I mean, it can't fix all the issues but it is helpful

I still despise the terrible interface google made but it at least hides some of the nonsense and reliably sets the default quality... unless yt decides to just not serve anything above 480p at all for some videos but app probably can't fix that

ReVanced still requires you to use NewPipe to download the videos though.

more replies More replies
u/Cant_Think_Of_UserID avatar

This is the way.

Sent from Revanced RIF is Fun App because Reddit app is wank.

more replies More replies
More replies
More replies
u/SysAdmyn avatar

I use an app called Seal to download videos, and it's been a game-changer. I have yet to feed it a video link that it didn't download. Only thing I wish it had was interoperability with Revanced

u/lolno avatar

I can send videos straight to seal with the share button in revanced, not having to leave the app is pretty nifty. It gives you an options overlay popup with a download button and you're back to YouTube. But this may be dependent on your version of Android, not sure.

more reply More replies

Can it download a playlist though? I have yet to find one that can. Mostly have to feed individual links. Quite a tedious job when you want to download e.g. a fragmented audiobook or a soundtrack of over 150 songs

more reply More replies
More replies

Can't use it on all devices. Prefer premium.

u/Confused-Raccoon avatar

Have you tried Greyjay?

More replies
More replies

I subscribe to it because I don't want ads, downloading is a bonus.

I use ReVanced cause I'm poor and have zero interest in giving YouTube a penny under any circumstances.

u/myreala avatar

I get that you're poor but YouTube is a massive undertaking. There is literally no one else except Google that can build something like this and keep it running and if it's not profitable they will shut it down or increase the ads. I must say my experience with YouTube premium is so much better. Almost all my complaints have disappeared. Revanced is fine and I used it for some time but premium just works plus I get YouTube music so no Spotify subscription needed. 

u/CaptOblivious avatar

There is literally no one else except Google that can build something like this

Sorry but no, google bought youtube.

History of YouTube

YouTube is an American online video-sharing platform headquartered in San Bruno, California, founded by three former PayPal employees—Chad Hurley, Steve Chen, and Jawed Karim—in February 2005. Google bought the site in November 2006 for US$1.65 billion

more reply More replies
More replies

I can understand not liking YouTube company-wise but I like to support the creators I like.

Donate to them directly

more replies More replies

That's fair! I prefer to do that separately from the YouTube platform when I'm able. Usually they have a patreon or something. Most of my favorites are on nebula and if I was ever able to afford that I'd feel a lot better about it than through YouTube.

more replies More replies
u/Refflet avatar

That's what Patreon is for.

you are supporting YouTube dude, not the creators.

more replies More replies
more replies More replies
More replies
u/Hellkids2 avatar

It also lets you listening to stuff while having the app minimised too, that was my reason for subbing

I enjoy that functionality very much but do not think it should be behind the paywall.

Or if you navigate to YT in a Firefox browser you can have background playback.

u/kingsappho avatar

I just use revanced.

more replies More replies
more reply More replies
u/wuvonthephone avatar

Revanced + ublock origin + sponsorblock

NewPipe on Android, Invidious on PC and iPhone

more replies More replies
More replies
u/dontthink19 avatar

I subscribe for the YouTube music. I actually had Google music premium before they turned into ytmusic.

The ad free is a huge bonus, other little things like 2x play when you hold your finger on the screen, background play, downloads.

Next I hear they're trying out an "smart skip" that'll skip the sponsored content in video. Which would be a HUGE bonus. I get that creators use sponsorship spots to increase revenue, but to me, it's still an ad and YouTube premium is supposed to be ad-free.

More replies
u/notenoughroomtofitmy avatar

YTP in a family plan is the best money can buy. I use YT 3 hours a day minumum, totally worth it

For more than one account for sure but I just use me

More replies
More replies
More replies

Doesn't yt-dlp already do this?

u/Nescio224 avatar

Yes but yt-dlp is not as easy to use for most people.

u/the_kilted_ninja avatar

That's why the gui version, Open Video Downloader, exists

u/Nescio224 avatar

I didn't know about that. Will try next time, thank you.

u/flameguy21 avatar

Just be sure to use the fork that's still maintained. The original one is pretty annoying without some manual tinkering.

https://github.com/StefanLobbenmeier/youtube-dl-gui/releases

more replies More replies

There’s also Stacher.io

More replies
More replies
u/callardo avatar

If you can’t type yt-dlp and paste the url you most likely shouldn’t be on the internet

More replies

yt-dlp is difficult to use?

u/Nescio224 avatar
Edited

Is a webpage where you just paste the link easier to use than a console application without its own interface, where you have to read the documentation to figure stuff out? Is that seriously what you are asking me or am I missing something?

u/cakee_ru avatar

$ yt-dlp <link>

Wow, such difficult

more replies More replies
more replies More replies
u/Fotzenhobel777 avatar

For me? No. For my mum? Yes.

More replies
More replies

I need a web version of yt-dlp so you just paste the link in, it gives you a choice of formats and you click the one you want to download it

More replies
More replies
u/SpaccAlberi avatar
Edited

this is great, but cobalt is still a thing, no ads, no trackers, data only decryptable from the downloaded link is stored for 90 seconds then purged, viewable and self-hostable code if you're a nerd... don't want to be the guy that complains about two cakes but this seems a bit redundant and a bit more restricted. still, thank you! :D

u/wukkyy avatar

main cobalt instance is also very reliable and has been up for several years :)

More replies

damn! didn't know about this, thanks a lot man!

More replies
More replies
u/WannaBeABetterHuman avatar

Can you create an extension to make it more easily accessible on a browser ?

Extensions are not my expertise but I'll definitely do it in the future. Thank you for your feedback.

u/Ieatfishies avatar

If you want I can help a bit on extensions.

More replies
u/Saint_The_Stig avatar

Honestly this is what I would love. I already use a version of the downloader with a GUI, but if I could just right click on the page to download that would save me a bunch of time. I put a lot of what I watch into Plex because YouTube's recommendations and watch tracking suck.

Hydrous Extension (basically a self hosted booru image gallery, highly recommended if you save a lot of images or videos be it memes or smut) has an extension that lets me do this so I can literally just right click an image I want to save and send it to my database and have it reverse search for a higher quality or immediately add tags (it will add tags on it's own as a regular task overnight anyway).

More replies

Jdownloader exists

People forget about jdownloader