frost20 Posted June 10, 2009 Share Posted June 10, 2009 Hi people, I would like to know how I could do a script that can scan the informations of multiples pages that render the informations the same way. Something like this page but anything will do: http://www.ic.gc.ca/app/ccc/srch/nvgt.do?lang=eng&prtl=1&sbPrtl=&estblmntNo=234567035165&profile=cmpltPrfl&profileId=501&app=sold And I'll do the script that automaticly load the next page and take the informations again and so on ... If anybody have a little idea of how to begin with this let me know, I'll be very glad . Thank you. Link to comment https://forums.phpfreaks.com/topic/161670-solved-scanning-the-content-of-a-page/ Share on other sites More sharing options...
Maq Posted June 10, 2009 Share Posted June 10, 2009 - Create a loop that will iterate through your desired pages. - Use file_get_contents to grab all the source. - Use regex to grab the information you want. Alternatively you can use cURL, which is a little more dynamic. Link to comment https://forums.phpfreaks.com/topic/161670-solved-scanning-the-content-of-a-page/#findComment-853053 Share on other sites More sharing options...
frost20 Posted June 11, 2009 Author Share Posted June 11, 2009 Thank you that exactly those functions I was looking for. Link to comment https://forums.phpfreaks.com/topic/161670-solved-scanning-the-content-of-a-page/#findComment-853486 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.