Download Original Image from flickr.com from Command Line

wget -qO- $url |grep '\\[^"]*_o\.[^"]*' -o |head -n1 |sed -e 's@\\@@g' |xargs -I{} wget -q "https:{}"

e.g.

wget -qO- "https://www.flickr.com/photos/londonlooks/5638424882/" |grep '\\[^"]*_o\.[^"]*' -o |head -n1 |sed -e 's@\\@@g' |xargs -I{} wget -q "https:{}"

3 responses to “Download Original Image from flickr.com from Command Line

  1. Muy interesante, me guardo el comando 😉

    por otro lado y para enriquecer un poco tu post pondré aquí los sufijos de la imagen que están disponibles además de _o para el original:

    s – Specifies the small square size of 75×75 pixels.
    t – Specifies the thumbnail size with 100 pixels on the longest side.
    m – Specifies the medium size with 240 pixels on the longest side.
    z – Specifies the medium size with 640 pixels on the longest side.
    b – Specifies the large size with 1024 pixels on the longest side.

    Un abrazote,

    P.D. Mola el favicon del blog, es tuyo o del theme?

Leave a Reply

Your email address will not be published. Required fields are marked *