Jump to content
UBot Underground

Need Help Extracting Correct Link


Recommended Posts

Hi guys,

 

so I've been messing with this for the last hour or so and am drawing a blank.

 

I have scraped a section of a page and have loaded that section with the load html command.

 

The result looks like this:

 

http://website.com/link1 http://website.com/link2 http://website.com/link2 http://website.com/link2 http://website.com/link3 http://website.com/link4

 

 

What I need is to extract http://website.com/link2 but only 1 time and save it to a variable.

 

Not sure what I should do.

 

Any help would be appreciated.

 

Thanks,

 

- samcro

 

 

 

 

 

Link to post
Share on other sites

If it is scraped multiple times, just add that url to a list with the advanced option set to "Delete" duplicates (which it is so by default anyway) and you'll end up with a list that contains the url only once.

Link to post
Share on other sites

If that URL doesn't have unique identifier, you can maybe use "$element offset" or you could try adding all scraped URL's in the list and loop through until you find the right one.

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