I have a php script that outputs a random image each time it's called. So when I open the script in a web browser, it shows one image and if I refresh, another image shows up.
I'm trying to capture the correct image from visiting the web site through a command line (via mechanize). I used urllib2.urlopen(...) to grab the image, but each time I do that I get a different image. I want to be able to consistently grab the same image. How can I accomplish that?
Thanks!
UPDATE: Here's an example of what I'm talking about. If you reload this image in a web browser, a different image pops up each time. If you right click and save, you get the correct image. And if you keep doing that, you keep getting the correct image... BUT, how do you that from a command line?