Pete_UK 9 Posted May 28, 2014 Report Share Posted May 28, 2014 Hi, I just purchased Ubot (standard) so I'm pretty new to the software. I'm trying to scrape the URL links for all products on page below but I can't figure out how to do it. I can scrape each the item Title and Price and save them in a list using add list to list - $scrape attribute and using the appropriate CLASS but can't figure out how to get the URL. Everything I try doesn't seem to work. Can anyone offer any advice? http://www.argos.co.uk/static/Browse/ID72/33012746/c_1/1|category_root|Technology|33006169/c_2/2|33006169|Home+audio|33008502/c_3/3|cat_33008502|Clock+radios|33012746.htm Thanks,Pete Quote Link to post Share on other sites
Pete 121 Posted May 28, 2014 Report Share Posted May 28, 2014 There are a lot of options to scrap data from that pageBut as you are working with lists some thing like this should do it add list to list(%products, $list from text($scrape attribute(<title=w"more details*">, "fullhref"), $new line), "Delete", "Global") Edit Or if you are getting to many try this add list to list(%Results, $list from text($find regular expression($page scrape("<span>Quick view</span></button>", "\" title=\"more"), "(http?:[^\\s]*)"), $new line), "Delete", "Global") Quote Link to post Share on other sites
Pete_UK 9 Posted May 28, 2014 Author Report Share Posted May 28, 2014 Thanks Zap. Working on it right now. Quote Link to post Share on other sites
Denethor 1 Posted August 27, 2014 Report Share Posted August 27, 2014 Any chance you'd be willing to share your script? I'm trying to do something very similar with a site http://www.fasttech.comI want to input a certain category and make a table with the Product title, Desc, and a link to any photos. Thank you, Quote Link to post Share on other sites
Pete_UK 9 Posted September 9, 2014 Author Report Share Posted September 9, 2014 I turned to using regular expressions to scrape each item individually. 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.