Link extractor, downloader, executer, unzipper
A program for extracting links from web pages and downloading them.
endl has a very simple also an advanced API for link extracting, file downloading, executing and unzipping.
Every version under 1.0 is beta. This means it has bugs and features can change.
Prerequisites: Tools for building NodeJS native modules
endl has a command line shortcut!
Like Handel the composer, but without the h → andel :)
This is written in CoffeeScript.
endl = require 'endl'endlpage''find'a[href^=""]'downloadpageUrlAsReferrer: truefilenameMode: urlBasename: true
endl.load()loads the page we want. (It takes two arguments, second argument is an options object and optional.)
find()finds the elements we want. (Works just like jQuery and querySelectorAll)
Things to note:
download()automatically selects the first element (0-index). Use
index()to change index of element array.
find()is a shortcut. The long way is: find(...) → href() → download(...)
parser.coffee) These 3 submodules have different default options for each task.
endl d "" "div.download a"