Created
November 10, 2018 11:53
-
-
Save Gruppio/f2fbc50f3c3282a0f291bfd9b062e5d6 to your computer and use it in GitHub Desktop.
Downloads images from RedBubble.com with a dimension of 512x512 and black background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Pass as parameter a redbubble image link like https://ih1.redbubble.net/image.379381203.9755/st%2Csmall%2C420x460-pad%2C420x460%2Cf8f8f8.lite-1u2.jpg | |
| url="$1" | |
| newUrl=${url//420/512} | |
| newUrl=${newUrl//460/512} | |
| newUrl=${newUrl//f8/00} | |
| curl "$newUrl" > "$(uuidgen).jpg" |
#!/bin/bash
Pass as parameter a redbubble image link likehttps://www.redbubble.com/i/sticker/Niki-Zefanya-by-angiesdesignss/46851072.EJUG5?country_code=US&epik=dj0yJnU9NFRJWGxSTExXX2huZU8wWmw5WnhJTWJEZFVVb1hKMGgmcD0wJm49WVVCazNRSlZkQjZNQzk2WVZCQWFxdyZ0PUFBQUFBR2Q4eFc4
url="$1"
newUrl=${url//420/512}
newUrl=${newUrl//460/512}
newUrl=${newUrl//f8/00}
curl "$newUrl" > "$(uuidgen).jpg"
#!/bin/bash
Pass as parameter a redbubble image link like https://www.redbubble.com/i/sticker/Niki-Zefanya-by-angiesdesignss/46851072.EJUG5?country_code=US&epik=dj0yJnU9NFRJWGxSTExXX2huZU8wWmw5WnhJTWJEZFVVb1hKMGgmcD0wJm49WVVCazNRSlZkQjZNQzk2WVZCQWFxdyZ0PUFBQUFBR2Q4eFc4.lite-1u2.jpg
url="$1"
newUrl=${url//420/512}
newUrl=${newUrl//460/512}
newUrl=${newUrl//f8/00}
curl "$newUrl" > "$(uuidgen).jpg"
pbpaste|sed 's/420/512/g ; s/460/512/g ; s/f8/00/g'|xargs curl -so "$(uuidgen).jpg"
url="$1" newUrl=${url//420/512} newUrl=${newUrl//460/512} newUrl=${newUrl//f8/00} curl "$newUrl" > "$(uuidgen).jpg"
file:///C:/Users/Admin/Desktop/sticker%20pack/Golden%20Ticket%20KRBTGT%20Sticker%20for%20Sale%20by%20maikroservice%20_%20Redbubble.html
pbpaste|sed 's/420/512/g ; s/460/512/g ; s/f8/00/g'|xargs curl -so "$(uuidgen).jpg"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/bin/bash
Pass as parameter a redbubble image link like https://ih1.redbubble.net/image.379381203.9755/st%2Csmall%2C420x460-pad%2C420x460%2Cf8f8f8.lite-1u2.jpg
url="$1"
newUrl=${url//420/512}
newUrl=${newUrl//460/512}
newUrl=${newUrl//f8/00}
curl "$newUrl" > "$(uuidgen).jpg"