Dynamically get image URL from Imgur page link
Posted
by
Jleagle
on Stack Overflow
See other posts from Stack Overflow
or by Jleagle
Published on 2012-10-28T16:56:34Z
Indexed on
2012/10/28
17:00 UTC
Read the original article
Hit count: 243
I am trying to put some images on my website that are hosted on Imgur but i only have the link to the Imgur page, not the actual image URL.
For example, on this album the URL I am trying to get is this: http://i.imgur.com/csb9Q.jpg (I only need the first image)
I have noticed that when the page only has one image, the image file name is the same as the URL address, for example: http://imgur.com/sYlGa & http://i.imgur.com/sYlGa.jpg So this isnt a problem.
But for pages with multiple images, this is not the case so how can i get the image URL?
© Stack Overflow or respective owner