Jump to content


Photo

Want to split an HTML Section into vars


  • Please log in to reply
1 reply to this topic

#1 synted

synted
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 25 September 2006 - 11:31 AM

I have grabbed a Webpage (HTML) from a remote site that contains name surname and stuff like that.... How can i put each one (result) into a var?

The page is like that:
<html>
<head>
<title>Title Here.</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Name:*********<br>
Surname:***************<br>
Number:***********<br>
Date:*************<br>
Date2:*************<br>
Phone:*************<br>
Phone:*************<br>
<br>
</body>
</html>
(Also what to do with the two phones? The name is the same but they might be different data)

#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 25 September 2006 - 01:29 PM

I haven't made any type of crawling script, but you would have to look for particular words (using regexp?) and parse out the data you wanted.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users