dustinhtc13 0 Posted October 13, 2016 Report Share Posted October 13, 2016 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! Quote Link to post Share on other sites
pash 504 Posted October 14, 2016 Report Share Posted October 14, 2016 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") } 2 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 14, 2016 Report Share Posted October 14, 2016 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 1 Quote Link to post Share on other sites
dustinhtc13 0 Posted October 14, 2016 Author Report Share Posted October 14, 2016 Thanks both of you! I will test it when I'm back home. Quote Link to post Share on other sites
dustinhtc13 0 Posted October 14, 2016 Author Report Share Posted October 14, 2016 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) Quote Link to post Share on other sites
pash 504 Posted October 14, 2016 Report Share Posted October 14, 2016 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) } 1 Quote Link to post Share on other sites
dustinhtc13 0 Posted October 14, 2016 Author Report Share Posted October 14, 2016 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 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 14, 2016 Report Share Posted October 14, 2016 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. Quote Link to post Share on other sites
dustinhtc13 0 Posted October 14, 2016 Author Report Share Posted October 14, 2016 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 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.