itexspert 47 Posted September 1, 2015 Report Share Posted September 1, 2015 Hey guys i seem to hit a snag i have been working straight for 4 hours on something and now a friend of my wanted me to incorporate something different to help him sadly my brain is half dead and i need your help: I am on this page: http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers What i am trying to do is download all HREF-s Direct links to Products Listed you know like: http://www.amazon.com/ProBox-E3-1246-Business-Server-Computer/dp/B00ZZE7ZDG/ref=sr_1_1?s=pc&ie=UTF8&qid=1441063305&sr=1-1&keywords=computers&pebp=1441066618673&perid=0CVF21KC7N887RYXE9JQ http://www.amazon.com/gp/offer-listing/B001CGHH98/ref=sr_1_4_olp?s=pc&ie=UTF8&qid=1441063305&sr=1-4&keywords=computers&condition=used If anyone can help please do i am stuck on this one! Quote Link to post Share on other sites
pash 504 Posted September 1, 2015 Report Share Posted September 1, 2015 Get ASIN = Get URLsample asin to url navigate("http://www.amazon.com/dp/B00ZZE7ZDG","Wait")http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias=computers&field-keywords=computers navigate("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers","Wait") set(#html,$scrape attribute(<id="atfResults">,"innerhtml"),"Global") add list to list(%asin,$find regular expression(#html,"(?<=data-asin=\").*?(?=\")"),"Delete","Global") 1 Quote Link to post Share on other sites
itexspert 47 Posted September 1, 2015 Author Report Share Posted September 1, 2015 Get ASIN = Get URLsample asin to url navigate("http://www.amazon.com/dp/B00ZZE7ZDG","Wait") navigate("http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dcomputers&field-keywords=computers","Wait") set(#html,$scrape attribute(<id="atfResults">,"innerhtml"),"Global") add list to list(%asin,$find regular expression(#html,"(?<=data-asin=\").*?(?=\")"),"Delete","Global")You are a genius,i actually realized just how tired i was when i saw your simple solution when i woke up this morning. Thanks Pash! 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.