The following link outputs a different image every time you visit it:
http://www.biglickmedia.com/art/random/index.php
From a web browser, you can obviously right click it and save what you see. But if I were to visit this link from a command line (like through python+mechanize), how would I save the image that would output? So basically, I need a command-line method to imitate right clicking and saving the image after initially visiting the site from a web browser.
I can already use iMacro to do this, but I’d like a more elegant method. What can I use to accomplish this? Thanks!
you might need something that creates a socket to the server and then issues a http GET request for “art/random/index.php”. save the payload from the HTTP response, and then you have your data
what you would be creating is a simple HTTP client
the unix command wget does this: