Magus is a nodejs wrapper for phantom. It works like a usual browser using tabs and extensions. Also it allow to create macros for simplify execution of complicated tasks.
Usage examples
Grab page h1 title text.
var browser = ;browser // Go to url // Wait till page loading // Get h1 textContent text'h1' // Run actions sequence ;
Download nodejs shasums from downloads page. (Download is running in nodejs process so it doesn't use browser authentication username and password):
var browser = ;browser // Go to url // Wait till page loading // Find shasums link url // Download as shasums.txt // Run actions sequence ;