the_way 52 Posted February 6, 2020 Report Share Posted February 6, 2020 I'm having difficulty saving the images on an example teepublic page. https://www.teepublic.com/en-gb/mug/1000159-downhill-mtbI'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. Quote Link to post Share on other sites
pash 504 Posted February 6, 2020 Report Share Posted February 6, 2020 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) } 1 Quote Link to post Share on other sites
the_way 52 Posted February 6, 2020 Author Report Share Posted February 6, 2020 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) } Quote Link to post Share on other sites
ThatGuyJuy 1 Posted February 7, 2020 Report Share Posted February 7, 2020 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? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 16, 2020 Report Share Posted February 16, 2020 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. 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.