Jump to content


Photo

Parsing html source inside functions


  • Please log in to reply
2 replies to this topic

#1 paulbrown83

paulbrown83
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 May 2006 - 05:24 PM

I want to write a php script that takes in a list of values, and for each value, produce a URL that pulls up a specific website. The sites are just a directory that can take manual requests from the URL. For each URL, I want to parse the html source code of each, extracting certain pieces of data, and ultimately saving these data into a table. I know how to do all of the parsing, I just need to know how to loop through multiple URL's, and for each one, save the source code to an object that can be immediately parseable. Or something to that effect. Any thoughts?

#2 haydndup

haydndup
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts
  • LocationJohannesburg, South Africa

Posted 16 May 2006 - 05:29 PM

Could you ellaborate a bit, or give some examples. Your previous post isn't very clear ;-)
[!--coloro:#660000--][span style="color:#660000"][!--/coloro--]The Gene Pool Could Use A Little Chlorine[!--colorc--][/span][!--/colorc--]

#3 paulbrown83

paulbrown83
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 May 2006 - 06:09 PM

Yep. The website is a directory, where you look up people's info. The url includes the username of the person, so I can make a list of URL's, one for each user I want to get data on. For each URL, I want to pull some data and put it in a file. The data will simply show up on the page for each URL, and if I can parse that source code, I can pull the specific data that I need.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users