RATPFINK 3 Posted August 3, 2012 Report Share Posted August 3, 2012 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. Quote Link to post Share on other sites
James J 3 Posted August 3, 2012 Report Share Posted August 3, 2012 Maybe try placing the add to list items inside of an if command so that onlyif 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 { } } Quote Link to post Share on other sites
RATPFINK 3 Posted August 3, 2012 Author Report Share Posted August 3, 2012 Have you tried using the trim function?Trim function? 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.