Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Utility for recursively retrieving files from the net

0 views
Skip to first unread message

roberti...@gmail.com

unread,
Jan 23, 2008, 11:50:00 PM1/23/08
to
Hi,

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

John Reiser

unread,
Jan 24, 2008, 1:26:19 AM1/24/08
to
> Does 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).

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.

--

roberti...@gmail.com

unread,
Jan 25, 2008, 11:21:53 PM1/25/08
to

Thanks for taking the time to type it out.

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.

roberti...@gmail.com

unread,
Jan 26, 2008, 2:16:02 AM1/26/08
to
Actually, it will work. There is a windows port of wget- that and a
small dos batch file is all i needed.

Thanks,

Rob T.

Paul Johnson

unread,
Jan 26, 2008, 4:31:26 PM1/26/08
to
On Jan 25, 8:21 pm, robertitruji...@gmail.com wrote:
> 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..

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/

0 new messages