javascript - Getting source of a page after it's rendered in a templating engine? -


so i'm doing screen scraping on site js heavy. uses client side templating engine renders content. tried using jquery , worked in console, not on server (nodejs), obviously.

i looked @ few libraries python , java, , seem able handle want, prefer js solution works node server.

is there way complete source of page after it's rendered, using node?

i used jsdom screen scrapping , code goes here...

var jsdom = require( 'jsdom' ); jsdom.env( { url: <give_url_of_page_u_want_to_scarpe>, scripts: [ "http://code.jquery.com/jquery.js" ], done: function( error, window ) {   var $ = window.$;    // required page loaded in $....   //you can write javascript or jquery code ever want  } } ); 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -