Jump to content
UBot Underground

Scrape only once


Recommended Posts

OK, I'm going back to the alter of Ubot Gods for this one. :-)

 

I'm trying to scrape something that may appear twice on a page, but only want to save it once to my list. Here's my example:

 

http://img819.imageshack.us/img819/6669/scrapeonly1.png

 

I'm scraping a category number from a PhpLD directory of choices. I'm scraping just the number from something like this:

 

/submit.php?c=384">

 

The above code scrapes 384 perfectly to the list %catNumbers, but sometimes I end up with a double entry because sometimes there's two submit links on a page. I end up with:

 

384

384

 

I just want a single 384 to be entered into my list, even though there may be two on a page. How the heck would one do this?

Link to post
Share on other sites

Oh God damn it.

 

No, no...wait - I want to do it the HARD way! Isn't there a Javascript expression that can do this?

 

:-P

 

Thanks.

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...