Mrcrix 10 Posted November 3, 2016 Report Share Posted November 3, 2016 Hello!Could anyone help me to scrape an html <select>? In a page I have some html <select>, I need to scrape the innertext of each option for a particular select, I know how to select the correct one but I cant find the way to scrape each option... Any help would be appreciated. Thank you! Quote Link to post Share on other sites
pash 504 Posted November 4, 2016 Report Share Posted November 4, 2016 try load html("<select> <option value=\"volvo\">Volvo</option> <option value=\"saab\">Saab</option> <option value=\"opel\">Opel</option> <option value=\"audi\">Audi</option> </select>") set(#Html,$scrape attribute($element offset(<tagname="select">,0),"innerhtml"),"Global") alert($find regular expression(#Html,"(?<=\">).*?(?=<)")) Quote Link to post Share on other sites
deliter 203 Posted November 4, 2016 Report Share Posted November 4, 2016 If you want to try learning CSS Selectors(Jquery Selectors) Ive a plugin with a few useful functions one of them is child selectors,the plugin is free in the plugin section,Ive made a quick intro video into them too on the thread Code is pretty simple,get all the children elements Value of the tagname select alert($plugin function("DeliterCSS.dll", "Deliter CSS Child Elements Selector", $document text, "select", "Value")) Quote Link to post Share on other sites
Mrcrix 10 Posted November 4, 2016 Author Report Share Posted November 4, 2016 Great! it works with pash code.Deliter, I would like to give a try to your plugin but I couldn't find it, where should I download it? Thank you for your help!! Quote Link to post Share on other sites
Varo 28 Posted November 6, 2016 Report Share Posted November 6, 2016 Great! it works with pash code.Deliter, I would like to give a try to your plugin but I couldn't find it, where should I download it? Thank you for your help!! Check this link for deliter pluginhttp://network.ubotstudio.com/forum/index.php/topic/19608-css-selector-plugin-free/ 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.