Jump to content

Screen scrape with PHP


Nightwolf629

Recommended Posts

You're going to have to use cURL to obtain the contents if any fields are required to be filled in.  If it's valid XHTML you can use simplexml otherwise you're going to have to use something like preg_match or preg_match_all with regex to scrape the information.

I can do the regex, that is not my problem.

 

My problem is getting to the html in the first place, and only because the page requires a username and password.  It asks for them in a dialogue box that pops up and looks like this:  http://polpo.org/tmp/httpauth.png (top is firefox, bottom is IE)

 

I have a valid username and password, but I have no way of entering them in with PHP.

 

I have tried to use cURL, but I am still not able to get it to log in.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.