zer0hour Posted July 27, 2011 Share Posted July 27, 2011 How can you scrape information from a website that requires the user to login? For example, if I wanted to use the DOM functions on my hotmail account to get a list of unread e-mails' subjects. I couldn't just go $doc = new DOMDocument(); @$doc->loadHTMLFile('http://www.hotmail.com/inbox'); Does my question make sense? Link to comment https://forums.phpfreaks.com/topic/243034-how-do-you-scrape-from-a-webpage-users-login-to/ Share on other sites More sharing options...
MadTechie Posted July 27, 2011 Share Posted July 27, 2011 You would need to use something like cURL, and post the login details, then grab the contents and parse anyway you see fit, SimpleXML, RegEx etc Link to comment https://forums.phpfreaks.com/topic/243034-how-do-you-scrape-from-a-webpage-users-login-to/#findComment-1248233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.