how do you scrape information from a site requiring authentication?

How can you use DOM functions on a site you must log into? For example a script would pull rows from a table in a site a user logs into.

more specify please …

Ok so let me use this forum as an example. I want to write a PHP program that when given a users login details, it would scrape information from the messages page (e.g. http://www.phphelp.com/forum/index.php?action=pm) and would output a list of unread messages subjects. I would use PHPs DOM functions to get the information, my question is how do you login to the website?

you should use AJAX , build a page with an output of a new messages , that takes username and password and returns a unread messages , than with AJAX you can retrieve it for an user and place in html …

Sponsor our Newsletter | Privacy Policy | Terms of Service