webpro 31 Posted December 1, 2013 Report Share Posted December 1, 2013 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/ or0) 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 !!! Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 1, 2013 Report Share Posted December 1, 2013 $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 3 Quote Link to post Share on other sites
webpro 31 Posted December 1, 2013 Author Report Share Posted December 1, 2013 THANKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 2, 2013 Report Share Posted December 2, 2013 You are welcome. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.