Skip to content

Instantly share code, notes, and snippets.

@loisaidasam
Created February 3, 2016 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loisaidasam/f2a22941f096ddf3f009 to your computer and use it in GitHub Desktop.
Save loisaidasam/f2a22941f096ddf3f009 to your computer and use it in GitHub Desktop.
Download your bellababy photos
#!/bin/bash
# To download your BellaBaby photos
# (people who come to the hospital and take photos of you and your newborn)
# Note: They are watermarked - you have to pay (big bucks) for the originals!
# This seemed to be the convention for my photos:
TAG="<photographer_name><date><your_last_name>"
# Files 1-9 have slightly different structure...
for i in {1..9}
do
url="https://bellababy-prod.s3.amazonaws.com/generated/$TAG/watermark/0$i-_-$i.jpg"
echo $url
wget --no-check-certificate $url
done
for i in {10..25}
do
url="https://bellababy-prod.s3.amazonaws.com/generated/$TAG/watermark/$i-_-$i.jpg"
echo $url
wget --no-check-certificate $url
done
@rybinsk
Copy link

rybinsk commented Dec 26, 2017

Replace "watermark" with "image" and you get the original.

@dsekaran51
Copy link

Is this still working. I am getting 403 error message

@iamhammer
Copy link

Replace "watermark" with "image" and you get the original.

This gave me a decent quality image, thank you! This version, while decent, is still a scaled down version. Know of anymore of the magic words that make up the location of the real deal HQ images?

I know of "thumb" and "greyscale" (though these still have watermarks on them too).

@collierc
Copy link

Im getting 403 error message. Any resolution for this?

@blindnote
Copy link

Works for me. Thanks a lot!

@mohisinabbas
Copy link

Is this working? Can you guys tell me the steps followed?

@ravineon
Copy link

Replace "watermark" with "image" and you get the original.

This gave me a decent quality image, thank you! This version, while decent, is still a scaled down version. Know of anymore of the magic words that make up the location of the real deal HQ images?

I know of "thumb" and "greyscale" (though these still have watermarks on them too).

the "image" keyword doesn't work for me, I'm looking to get a non watermarked image :(. How did you get the scaled down version?

@nagendrasahni
Copy link

I missed to note the photographer name. Is there a way I can find it?

@sivshan
Copy link

sivshan commented Jan 27, 2019

Did this work for anyone recently?

@creativetrendsapps
Copy link

Replace "watermark" with "image" and you get the original.

This gave me a decent quality image, thank you! This version, while decent, is still a scaled down version. Know of anymore of the magic words that make up the location of the real deal HQ images?
I know of "thumb" and "greyscale" (though these still have watermarks on them too).

the "image" keyword doesn't work for me, I'm looking to get a non watermarked image :(. How did you get the scaled down version?

Ever find a keyword?

@gummallabala
Copy link

I'm unable to download the original image. Can anybody help me to get this?
The above keywords are not working

@kosand02
Copy link

Yields a 403, was anyone able to surpass this?

@jhkeswani18
Copy link

Doesn't work with recent formats.. Anybody has any idea? @loisaidasam

@jhkeswani18
Copy link

@blindnote .. Can you share if it worked with v2 version for you last time?

@Aviator85
Copy link

Aviator85 commented Mar 9, 2024

anything with this? also have v2 but it still uses the "https://bellababy-prod.s3.amazonaws.com/generated/123454321/watermark/03-ACCESSCODE-5311-02.jpg

I'm able to swap the "watermark" for "thumb" and "greyscale" but they also are watermarked

@kaOster
Copy link

kaOster commented Mar 31, 2024

anything with this? also have v2 but it still uses the "https://bellababy-prod.s3.amazonaws.com/generated/123454321/watermark/03-ACCESSCODE-5311-02.jpg

I'm able to swap the "watermark" for "thumb" and "greyscale" but they also are watermarked

I have tried all sort of words, nothing hits the mark. someone has to report the success story!!

@timbuktumor
Copy link

The un-watermarked images are in the same location, but are protected with URL signing.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.html
https://docs.aws.amazon.com/AmazonECR/latest/APIReference/CommonParameters.html

A valid URL would looks something like this:
https://bellababy-prod.s3.amazonaws.com/generated/1234567/image/01-YOURACCESSCODE-01.jpg?X-Amz-Expires=7200&X-Amz-Date=20240401T141835Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ABCDEFGHIJKLMNOPQRST/20240401/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ab1cd2ef3gh4ij5kl6mn7op8qr9st0uv1wx2yz3ab4cd5ef6gh78901234567890

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment