How to get webcontent that is loaded by JavaScript using cURL?

cURL will only get you the markup of the page. It won’t load any additional resources or process the page. You probably want to look at something like PhantomJS for this. PhantomJS is a headless WebKit browser. It has its own API that lets you “script” behavior. So you can tell PhantomJS to load the page and dump out the data you need.

Leave a Comment