Hacker News new | ask | show | jobs
by abalashov 1045 days ago
Not trying to be a sketchy contrarian, but why would you do this with JavaScript? It just doesn't seem very fit for purpose...
2 comments

The most interesting part of this (the bypass itself) involves executing a Javascript challenge. It's very convenient to do that from Javascript (the author mentions that Python implementations need to add a Javascript interpreter). Besides that, it's mostly async I/O which: 1) might be annoying in earlier versions of Javascript, but with Promises and async/await, it's very clear and readable (to me) in Javascript; 2) is the exact case (I/O-bound, not CPU-bound) where Node.js performs efficiently.
You should at least say why you don't think Javascript is fit for the trivial task of downloading files.

Especially in an article that already had to unwind and explain Youtube's Javascript code.