Jump to content
UBot Underground

scrape a dropdown menu

Recommended Posts

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):


set(#statesscraped$scrape attribute(<name="geo1_id">"innertext"), "Global")


Thanks guys, really appreciate your help.




Luis Carlos

Link to post
Share on other sites

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")
  • Like 1
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.

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.

  • Create New...