How could i grab a website and execute js on this site to get the complete dom?

3 points by addisaden ↗ HN
Hi everybody,

is there a way to grab the website and execute the javascripts? Some Websites inject Content via Javascript and Ajax and it would be great to get these.

I am porgramming in Ruby. Maybe there is a way to do this with NodeJS?

Thank you for your help

4 comments

[ 5.6 ms ] story [ 18.3 ms ] thread
You can do this with Node+jsdom or PhantomJS.
Thank you. PhantomJS looks great.