BlackHatMon3yMaker 0 Posted March 28, 2016 Report Share Posted March 28, 2016 (edited) Basically I'm trying to write a code that will download images off amazon listings.I'm setting up a variable that will have the img link i need to download the image.This is the code I get when I scrape the parent elementI've bolded the link I need to extractedit: tried to bold it at least, should be obvious though! <div width="100%" id="iv-large-image" style="overflow: hidden; width: 100%; position: relative; top: 0px; left: 0px; height: 391px; display: block; opacity: 1; visibility: visible;"><img src="http://ecx.images-amazon.com/images/I/61kABvWK2WL._SL1200_.jpg" class="fullScreen" style="height: 211.42px; width: 342px; margin-top: 90px; margin-left: 0px;"></div> <innerhtml=w"img src=\"http://ecx.images-amazon.com/images/I/*.jpg\" "> ^^I've already tried using this with the "scrape attribute" feature to no avail! It won't pull the link, but I don't see why it wouldn't.How can I set something up to scrape that link?? I've tried a lot of other methods too, but I have a feeling I'm missing something obviousI'm completely brand new to this so any advice would be very helpful Edited March 28, 2016 by BlackHatMon3yMaker Quote Link to post Share on other sites
abbas786 78 Posted March 29, 2016 Report Share Posted March 29, 2016 Basically I'm trying to write a code that will download images off amazon listings.I'm setting up a variable that will have the img link i need to download the image.This is the code I get when I scrape the parent elementI've bolded the link I need to extractedit: tried to bold it at least, should be obvious though! <div width="100%" id="iv-large-image" style="overflow: hidden; width: 100%; position: relative; top: 0px; left: 0px; height: 391px; display: block; opacity: 1; visibility: visible;"><img src="http://ecx.images-amazon.com/images/I/61kABvWK2WL._SL1200_.jpg" class="fullScreen" style="height: 211.42px; width: 342px; margin-top: 90px; margin-left: 0px;"></div> <innerhtml=w"img src=\"http://ecx.images-amazon.com/images/I/*.jpg\" "> ^^I've already tried using this with the "scrape attribute" feature to no avail! It won't pull the link, but I don't see why it wouldn't.How can I set something up to scrape that link?? I've tried a lot of other methods too, but I have a feeling I'm missing something obviousI'm completely brand new to this so any advice would be very helpfulHere are the 2 ways to scrape it set(#imglink, $scrape attribute(<class="fullScreen">, "fullsrc"), "Global") set(#imglink2, $scrape attribute(<src=w"http://ecx.images-amazon.com/images/I/*.jpg">, "fullsrc"), "Global") Quote Link to post Share on other sites
Brutal 164 Posted March 30, 2016 Report Share Posted March 30, 2016 Regex provides a pretty simple solution - Here's a little cheater I built: http://network.ubotstudio.com/forum/index.php/topic/18936-regexcheater/?do=findComment&comment=117948 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.