Jump to content
UBot Underground

Only take first occurance of page scrape. I searched.


Recommended Posts

<td valign="top">

<a name="HarryMargolis"></a>

<h2 class="attorneyHeader">Harry S. Margolis </h2>

<a href="referral.asp?PageFrom=FirmProfile&User_ID=5001&AttorneyEmail=hsm@margolis.com&ContactSpecificAttorney=yes">Contact This Attorney Now</a><br>

535 Boylston Street   8th Floor<br>

Boston,  MA  02116<br>

 

Phone: (617) 267-9700 <br>

 

Fax: (617) 267-3166<br>

 

<a href="mailto:hsm@margolis.com">hsm@margolis.com</a><br>

 

<a href="http://www.margolis.com" target="_blank">www.margolis.com</a><br>

 

</td>

 

That's the code. I am using a pagescrape to get the phone number. There are a variable number of these boxes on the site, and it grabs the phone number from all of them. I only need the first one.

 

Image shows code and results.

http://i.imgur.com/faVNo.png

 

Site in question is here http://specialneedsanswers.com/professionals/FirmProfile.asp?FirmID=5001

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...