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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.