Jump to content
UBot Underground

Is there a way to extract from a list ?


Recommended Posts

Is there a way to extract from a list, with one item only ?

Or split what's in a list, under one item only ?

 

The problem is, i got a %list which sometimes winds up with 2 urls in it (shows up as one item).

So it's got the same position, which is zero.

Of course, if i navigate to it it doesn't work

http://www.whatever.com/nice.htmhttp://whatever.com/hot.htm

 

I'm trying to find a way to split them or extract one of them from the list.

 

Thanks

Link to post
Share on other sites

I think you should prevent that from being added to the list initially...so you end up with clean list.

 

However, I think the simplest way to get multiple URLs from a single string is:

add list to list(%URLs, $list from text("http://www.whatever.com/nice.htmhttp://whatever.com/hot.htm", "http://"), "Delete", "Global")

 


 

Link to post
Share on other sites

tHANKS uBOTdEV

 

 

Yeah i know but i'm stuck.

I did the best i could with regex to scrape everything but i still get this issue here and then.

 

I'll try this. Tomorrow (i'm dead !!!)

Thanks again

Link to post
Share on other sites

Cool this works !

 

Now i need to find a way to tell the bot to navigate from position 1 (if any) as one of the url winds up into position 1 (position 0 still got both urls)

 

I tried:

IF

  $EXISTS

      $LIST ITEM   %URLS2  POSITION #1

THEN

    NAVIGATE

             $LIST ITEM   %URLS2 POSITION #1

 

but i get an INVALID PARAMETER

 

Of course if i try to navigate from position 0

I get both urls mixed up

ex:

http://site.com/http://site2.com

Link to post
Share on other sites

Just a suggestion

After your list is biult,run thru the list to clean it up.

If your error is constant "htmhttp" or" htmlhttp" why not code a if/else test?

Set list

Check list = next list item

If checklist contains "htmlhttp"

Spit it in the middle

Else if checklist contains "htmhttp"

Split in the middle

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