mj1231 0 Posted July 7, 2017 Report Share Posted July 7, 2017 Hi all! Im trying to get the image url of the products in amazon but i cannot retrieve the image url exactly, does anybody know how to do it? pls share it with me, thanks ahead! i want to get the url and save it to a csv file. this is my code add list to list(%amazonimageurls,$scrape attribute(<id="imgTagWrapperId">,"src"),"Delete","Global")add list to table as column(&photo,0,0,%amazonimageurls)save to file("{$special folder("Desktop")}/photo.csv",&photo) http://prntscr.com/fsm32h Quote Link to post Share on other sites
pash 504 Posted July 10, 2017 Report Share Posted July 10, 2017 replace SS40 to other (sample SS500) sample navigate("https://www.amazon.com/dp/B00X4WHP5E","Wait") wait for browser event("Everything Loaded","") clear list(%ImageUrls) add list to list(%ImageUrls,$scrape attribute(<src=w"https://images-na.ssl-images-amazon.com/images/I/*._SS40_.jpg">,"fullsrc"),"Delete","Global") loop($list total(%ImageUrls)) { set(#ImageUrl,$next list item(%ImageUrls),"Global") navigate($replace(#ImageUrl,"_SS40_","_SS500_"),"Wait") wait(1) } 1 Quote Link to post Share on other sites
mj1231 0 Posted July 10, 2017 Author Report Share Posted July 10, 2017 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.