I'm gathering data for a project i'm working on for my page. It's a
traffic congestion assessment. I work pretty much standard hours, so i
can't be home to get the data while it's available (a live feed) so i
was hoping to use a utility that would do it automatically.
It's the speedmap that we can get at http://www.tripcheck.com/images/map/SpeedMap.gif?0.6317255
I've talked to the site admins, they say the pictures aren't archived.
It's updated once every two minutes. I need to get all of the pictures
continually during high traffic times (when i'm part of it).
Do anyone know of a utility that will autosave a .jpg from a url and
rename it (otherwise it just saves over the top of the previous). I've
been looking for something for a few weeks, i've found alot of great
utilities, but not much that will help.
Thanks,
Rob Trujillo
while true; do
wget -O SpeedMap-$(date +%Y%m%d-%H%M%S).gif \
http://www.tripcheck.com/images/map/SpeedMap.gif?0.6317255
sleep 116
done
That is a shell script runnable on Linux, or under cygwin on Win32.
wget does the retrieval, the parameter after "-O" gives the resulting
filename (something like "SpeedMap-20080123-222010.gif"), and 'sleep'
waits for the indicated number of seconds.
--
I'm on windows machines mostly, i don't know linux well enough to get
that working. But it's probably portable to a windows scripting
engine, i might try converting it..
If anyone know of a win32 uitility for this, please..
Thanks,
Rob T.
Thanks,
Rob T.
wget. It's available in cygwin like John mentioned. Also, please
don't top post. Conversational quote, trimming material you aren't
responding to as to preserve context and readability. See http://learn.to/quote/