Jump to content
UBot Underground

Ebay Maximgurl Scraper


Recommended Posts

Hi,

 

guys basically i want to grab the images of my auctions. How can i scrape the MaxImgUrl? 

I can only scrape the small pictures because that MaxImgUrl is coded Javascript. 

 

 

Thats a sample:

 

 http://www.ebay.de/itm/Apple-iPhone-6S-64GB-fur-519-30-verschiedene-Farben-ohne-Simlock-Wie-neu-/262645491140?var=&hash=item3d26e425c4:m:mruzzGhhGg9HaOeEGlRBo0g

 

 

How can i grab the image url from all that images?

 

 

 

Thank you!

 

 

Link to post
Share on other sites

The basic

clear all data
navigate("http://www.ebay.de/itm/Apple-iPhone-6S-64GB-fur-519-30-verschiedene-Farben-ohne-Simlock-Wie-neu-/262645491140?var=&hash=item3d26e425c4:m:mruzzGhhGg9HaOeEGlRBo0g","Wait")
wait for browser event("Everything Loaded","")
click(<id="icImg">,"Left Click","No")
add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
loop while($exists(<(title="To Next Image" AND class="pntrArr pntrArrNext pntrArrImg activeNext")>)) {
    click(<title="To Next Image">,"Left Click","No")
    add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
}
  • Like 2
Link to post
Share on other sites

Here is another way to do it.

 

Not that mine is better, but I did it so may as well share it too.

 

It's another look at least.

 

Regards,

 

Nick

 

scrape ebay images example.ubot

  • Like 1
Link to post
Share on other sites

 

The basic

clear all data
navigate("http://www.ebay.de/itm/Apple-iPhone-6S-64GB-fur-519-30-verschiedene-Farben-ohne-Simlock-Wie-neu-/262645491140?var=&hash=item3d26e425c4:m:mruzzGhhGg9HaOeEGlRBo0g","Wait")
wait for browser event("Everything Loaded","")
click(<id="icImg">,"Left Click","No")
add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
loop while($exists(<(title="To Next Image" AND class="pntrArr pntrArrNext pntrArrImg activeNext")>)) {
    click(<title="To Next Image">,"Left Click","No")
    add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
}

 

i tried your script but it isnt working for me. the script runs very fast. i also added a save function but the script doesnt do anything. (maybe im too stupid)

 

Here is another way to do it.

 

Not that mine is better, but I did it so may as well share it too.

 

It's another look at least.

 

Regards,

 

Nick

 

Your script is working perfectly but it is just saving the pictures in bad quality. Do you know how i can get them in better quality? (These are only the thumbnails)

 

 

Link to post
Share on other sites

clear all data
navigate("http://www.ebay.de/itm/Apple-iPhone-6S-64GB-fur-519-30-verschiedene-Farben-ohne-Simlock-Wie-neu-/262645491140?var=&hash=item3d26e425c4:m:mruzzGhhGg9HaOeEGlRBo0g","Wait")
wait for browser event("Everything Loaded","")
wait(1)
click(<id="icImg">,"Left Click","No")
add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
loop while($exists(<(title="To Next Image" AND class="pntrArr pntrArrNext pntrArrImg activeNext")>)) {
click(<title="To Next Image">,"Left Click","No")
add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
}
set list position(%ImageUrl,0)
set(#ImageName,0,"Global")
loop($list total(%ImageUrl)) {
download file($next list item(%ImageUrl),"{$special folder("Application")}\\Images\\{#ImageName}.jpg")
increment(#ImageName)
}
  • Like 1
Link to post
Share on other sites
clear all data
navigate("http://www.ebay.de/itm/Apple-iPhone-6S-64GB-fur-519-30-verschiedene-Farben-ohne-Simlock-Wie-neu-/262645491140?var=&hash=item3d26e425c4:m:mruzzGhhGg9HaOeEGlRBo0g","Wait")
wait for browser event("Everything Loaded","")
wait(1)
click(<id="icImg">,"Left Click","No")
add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
loop while($exists(<(title="To Next Image" AND class="pntrArr pntrArrNext pntrArrImg activeNext")>)) {
    click(<title="To Next Image">,"Left Click","No")
    add item to list(%ImageUrl,$scrape attribute(<id="viEnlargeImgLayer_img_ctr">,"fullsrc"),"Delete","Global")
}
set list position(%ImageUrl,0)
set(#ImageName,0,"Global")
loop($list total(%ImageUrl)) {
    download file($next list item(%ImageUrl),"{$special folder("Application")}\\Images\\{#ImageName}.jpg")
    increment(#ImageName)
}

 

Thanks but the problem is now that ubot doesnt click on every ebay page : http://www.ebay.de/itm/HTC-One-M8-gunmetal-gray-Android-Smartphone-/401157007855?hash=item5d66d229ef:g:0LYAAOSw-CpX9aoM<-- This isnt working

 

Your link is working it is very strange  :mellow:

Link to post
Share on other sites

I don't understand, what do you mean they are the thumb nails and poor quality?

 

On my desktop of the images they are 300x300.

 

The thumbs are 64x64.

 

I mean this http://prntscr.com/ctxstt

 

The downloaded image is smaller.

 

Image is from here :

 

http://www.ebay.de/itm/Apple-iPhone-4s-16GB-Schwarz-Ohne-Simlock-Smartphone-/252574608144?hash=item3ace9eab10:g:y1oAAOSwzaJX-Btc

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...