Javascript – How to implement a screen scraper in PHP


I have a user ID and a password to log in to a web site via my program. Once logged in, the URL will change from http://localhost/Test/loginpage.html to

How can I "screen scrape" the data from the second URL using PHP?

Best Solution

You would use Curl. Curl can login to the page, then access the new referred page and download the entire page.

Check out the php manual for curl as well as this tutorial: How to screen-scrape with PHP and Curl.