Friday, 15 March 2013

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


I am trying to capture a score table from a website. The problem is that the site is using Javascript which is apparently loaded on document.ready .

For this reason I do not seem successful in getting the table and what I got is the button at the top of that page

Any suggestions on how to solve it or idea?

The curl will only get you the markup of the page, it will not load any additional resources or process the page Will do You probably want to see something for this. PhantomJS is a non-head WebCat browser that has its own API that lets you script "behavior" then you can call PhantomJS to load the page and you can get the necessary data out. Are there.


No comments:

Post a Comment