cdadl is a Node.js script for downloading videos from cda.pl. This shameful code is crap but should get you idea how to crawl pages, deobfuscate JS and download files.
Get the repo, and install necessary packages with
npm install
Run with node like this:
node cdadl.js [video-url] [format] [filename-prefix] [aria]
Example:
node cdadl.js http://www.cda.pl/video/666 720p some.movie.
If last parameter includes aria
string then aria2c downloader will be spawned in separate window. It is much faster.
Remember that you can also: