This is something along the lines of what I’d like to do,
web_page = fetch("http://www.google.com")
console.log($(web_page).find("body"))
via a simple command line. So in a nutshell, save a webpage and then query that page using jQuery.
Are there any tools like this available?
try phantomjs , a headless webkit solution
http://phantomjs.org/