Jump to content
UBot Underground

Empty space in list


Recommended Posts

Ok this is probably going to embarrassingly simple to fix but it is something I have never been able to figure out. I've made dozens of account creators and all save the account info to their appropriate lists. The problem is some of them always leave a blank entry at the first position in the saved file. I can't figure out the difference between those that do and those that don't. They all work pretty much the same way, clear list, add list to list, then add the new item to the list and save to file. Like I said I'm sure its something simple but it has me stumped.

Link to post
Share on other sites

Maybe try placing the add to list items inside of an if command so that only

if the element you want to scrape is present will it get added to the list.

Like so...

 

clear list(%Google Results)
navigate("http://www.google.com/", "Wait")
type text(<name="q">, "weight loss", "Standard")
click(<name="btnK">, "Left Click", "No")
wait for browser event("DOM Ready", "")
if($exists(<class="l">)) {
   then {
       add item to list(%Google Results, $scrape attribute(<class="l">, "fullhref"), "Delete", "Global")
       add list to list(%Google Results, $scrape attribute(<class="l">, "fullhref"), "Delete", "Global")
   }
   else {
   }
}

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