Jump to content
UBot Underground

Trying To Download Pic From Element. Help On Ubot Code? Pretty Sure Fix Is Simple, Can't Figure It Out Though


Recommended Posts

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 element

I've bolded the link I need to extract

edit: 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 obvious

I'm completely brand new to this so any advice would be very helpful

Edited by BlackHatMon3yMaker
Link to post
Share on other sites

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 element

I've bolded the link I need to extract

edit: 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 obvious

I'm completely brand new to this so any advice would be very helpful

Here 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")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...