Jump to content
UBot Underground

Removing from list a changing number item


Recommended Posts

I'm trying to figure out a way of doing this.

 

 

Remove from a list an item which is never at the same position on each "scrape session"

 

In fact, i don't want to click on my own link ex:

 

%List could consist of:

0) http://www.icanclickthis.com/1/

1) http://www.icanclickthis.com/2/

2) http://www.mylinkdontclick.com/

3) http://www.icanclickthis.com/3/

 

or

0) http://www.icanclickthis.com/1/

1) http://www.icanclickthis.com/2/

2) http://www.icanclickthis.com/3/

3) http://www.mylinkdon'tclick.com/

 

So i figured i could use this:

ui text box("Campaign to sitetoremove", #sitetoremove)

I just paste the link i want to be removed each time from the list into the text box but then what's next ?

I tried various things but it's not working ?

Ex:

if($plugin function("File Management.dll", "$exists in list", %list, #sitetoremove)) {
    then {
        remove from list(%list, "")
    }
    else {
    }
}

Now this one above needs to have an list position number to be entered but it's never the same ?

What can i do ?

How would you do it ?

 

 

 

Hope you understood what i'm trying to do LOL !!!

Link to post
Share on other sites

$Replace with $nothing

 

$replace regex with $nothing

 

 

set(#urls"http://www.icanclickthis.com/1/
http://www.icanclickthis.com/2/
http://www.mylinkdontclick.com/
http://www.icanclickthis.com/3/""Global")
add list to list(%urls to click$list from text($replace(#urls"http://www.mylinkdontclick.com/"$nothing), $new line), "Delete""Global")

 

Or

 

clear list(%urls to click)
set(#urls"http://www.icanclickthis.com/1/
http://www.icanclickthis.com/2/
http://www.mylinkdontclick.com/
http://www.icanclickthis.com/3/""Global")
add list to list(%urls to click$list from text(#urls$new line), "Delete""Global")
plugin command("File Management.dll""remove all from list"%urls to click"http://www.mylinkdontclick.com/")

 

TC

  • Like 3
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...