top | item 4045223

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

3 points| addisaden | 14 years ago | reply

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

3 comments

order
[+] wmf|14 years ago|reply
You can do this with Node+jsdom or PhantomJS.
[+] addisaden|14 years ago|reply
Thank you. PhantomJS looks great.