somerandomusername
somerandomusername

Reputation: 2023

Get HTML after Javascript - server application

I need a way to get full HTML content of a page after Javascript has loaded and executed. It must be built as server side application (Linux) and can include any 3rd party software (some browser without GUI or anything else that could help).

Can this be done using PHP or Cpp, if not what other options do I have ? This is a strange subject - I'm having hard time finding information on it. Thank you for any help.

So I found something on subject - Any way to run Firefox with GreaseMonkey scripts without a GUI/X session , but if anyone has something to add I'm still open for suggestions.

It seems that Node.js could help

Upvotes: 1

Views: 709

Answers (1)

Jamund Ferguson
Jamund Ferguson

Reputation: 17014

You want this http://phantomjs.org/. It uses JavaScript but lets you do anything you could do in a web browser (including viewing current state of the DOM).

Upvotes: 3

Related Questions