Link extractor, downloader, executer, unzipper
A Node.js module 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.
This is written in CoffeeScript.
endl = require 'endl'endlpage''find'a[href^=""]'downloadpageUrlAsReferrer: truefilenameMode: urlBasename: true
endl.page()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(...)
Prerequisites: Tools for building NodeJS native modules (Visual Studio or Visual Studio Express)
Like Handel the composer, but without the h → andel :)
parser.coffee) These 3 submodules have different default options for each task.