luis carlos 94 Posted August 3, 2013 Report Share Posted August 3, 2013 I've tried to find out how to do this, but I could not. Even I found some threads in the forum about similar questions, I tried the solutions and did not work. Just need to scrape the list of states in this site (this is my code): navigate("http://www.adoos.com/posting/", "Wait")set(#statesscraped, $scrape attribute(<name="geo1_id">, "innertext"), "Global") Thanks guys, really appreciate your help. Luis Carlos Quote Link to post Share on other sites
UBotDev 276 Posted August 3, 2013 Report Share Posted August 3, 2013 I think the easiest way is to use regex. This should do it for you: navigate("http://www.adoos.com/posting/", "Wait") wait for element(<name="geo1_id">, "", "Appear") clear list(%statesscraped) add list to list(%statesscraped, $find regular expression($scrape attribute(<name="geo1_id">, "innerhtml"), "(?<=>).*?(?=<)"), "Delete", "Global") 1 Quote Link to post Share on other sites
UBotDev 276 Posted August 3, 2013 Report Share Posted August 3, 2013 If you don't want to use REGEX there is also another way, which you can find here: http://www.ubotstudio.com/forum/index.php?/topic/14577-drop-down-question/ 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.