danoctav 7 Posted October 10, 2011 Report Share Posted October 10, 2011 I have scraped a list of links(with amazon products).Now,I navigate through each link,and I want to scrape just first shipping value [$16.50] for each product,like I show in picture(because many,have 2 or more shipping providers with different prices) : http://img444.imageshack.us/img444/9421/shippingubot.jpg . The problem is that using "scrape attribute" with "wildcard" it scrapes all three shipping values [$16.50 , Free shipping and $7.49] and I want just first[$16.50]. How can I do this?Thanks Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 10, 2011 Report Share Posted October 10, 2011 let me know an example page that can be gone to, to pull up that very thing your looking at now. I tried to find a product page and couldnt find one looking like that. Quote Link to post Share on other sites
JohnB 255 Posted October 10, 2011 Report Share Posted October 10, 2011 That's funny...I can't find a single product that shows a hipping cost either. I thought logging in would help, but it didn't. John Quote Link to post Share on other sites
danoctav 7 Posted October 10, 2011 Author Report Share Posted October 10, 2011 Sorry for not sending more informations ,guys....Look at this link :TY127S-Disposable Hope this helps ! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 10, 2011 Report Share Posted October 10, 2011 clear list(%shipping) add list to list(%shipping, $scrape attribute(<innertext=w" + $* shipping">, "innertext"), "Delete", "Global") set(#shipping, $list item(%shipping, 0), "Global") Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 10, 2011 Report Share Posted October 10, 2011 here is even shorter code. 1 node set(#shipping, $page scrape("</b><span class=\"plusShippingText\"> + ", " shipping</span>"), "Global") Quote Link to post Share on other sites
danoctav 7 Posted October 10, 2011 Author Report Share Posted October 10, 2011 here is even shorter code. 1 node set(#shipping, $page scrape("</b><span class=\"plusShippingText\"> + ", " shipping</span>"), "Global") Hey LoWrIdErTJ,Thank you very much for help, I will try..... 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.