Jump to content
UBot Underground

Is It Possible To Scrape The Images From Teepublic?


Recommended Posts

I'm having difficulty saving the images on an example teepublic page.

https://www.teepublic.com/en-gb/mug/1000159-downhill-mtb

I've tried loading the page on mobile, and its still the same, its like it selects, all of the slider, and I'm not sure how to separate the images, and save all 3 views.

 

Anyone got any ideas?

 

thanks.

Link to post
Share on other sites

navigate("https://www.teepublic.com/en-gb/mug/1000159-downhill-mtb","Wait")
wait for browser event("Everything Loaded","")
wait(1)
set(#Debug,$scrape attribute(<class="glide__slides">,"outerhtml"),"Global")
load html(#Debug)
clear list(%Debug)
add list to list(%Debug,$scrape attribute(<tagname="img">,"fullsrc"),"Delete","Global")
set(#Loop,0,"Global")
loop($list total(%Debug)) {
    download file($next list item(%Debug),"{$special folder("Application")}\\Img_{#Loop}.jpg")
    increment(#Loop)
}
  • Like 1
Link to post
Share on other sites

Genius, never thought of forcing an html load, thanks very much, i'm sure that process will come in handy in the future.

 

 

navigate("https://www.teepublic.com/en-gb/mug/1000159-downhill-mtb","Wait")
wait for browser event("Everything Loaded","")
wait(1)
set(#Debug,$scrape attribute(<class="glide__slides">,"outerhtml"),"Global")
load html(#Debug)
clear list(%Debug)
add list to list(%Debug,$scrape attribute(<tagname="img">,"fullsrc"),"Delete","Global")
set(#Loop,0,"Global")
loop($list total(%Debug)) {
    download file($next list item(%Debug),"{$special folder("Application")}\\Img_{#Loop}.jpg")
    increment(#Loop)
}
Link to post
Share on other sites
  • 2 weeks later...

ok, im new to all of this and have been plating around with certain scripts. Is this just for the developer software, because when i copy and pasted in code view, I received an error message?

 

Try to copy and then just paste in node view instead. Code view is available at pro (I think) and dev.

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