download webpage

L

luc

With the following command u can download a webpage and put it in ur c:

print `get http://charts.iex.nl/charts/D0-I230482-P-S50-Lnl.png >
c:/beurs/test/agfagevaert.png`;
(note: the single quotes here are a single backquotes).
This is a webpage that shows the evolution during the day of a share on the
amsterdam stock market.
At 17.00 this program is manually run.
The problem is that I would like to download this page everyday. But if I
use the above code it will overwrite the file. How does this code need to be
changed in order to have 5 files(of the 5 weekdays) at the end of the week.
 
A

A. Sinan Unur

With the following command u can download a webpage and put it in ur
c:

What do you mean with 'u' and 'ur'?
print `get http://charts.iex.nl/charts/D0-I230482-P-S50-Lnl.png >
c:/beurs/test/agfagevaert.png`;
(note: the single quotes here are a single backquotes).
This is a webpage that shows the evolution during the day of a share
on the amsterdam stock market.
At 17.00 this program is manually run.
The problem is that I would like to download this page everyday. But
if I use the above code it will overwrite the file. How does this code
need to be changed in order to have 5 files(of the 5 weekdays) at the
end of the week.

Why don't you prefix filenames with the date in YYYYMMDD format?

Sinan.
 
L

luc

A. Sinan Unur said:
What do you mean with 'u' and 'ur'?


Why don't you prefix filenames with the date in YYYYMMDD format?

Sinan.

you can't because when you use the single backquotes command is given to
dos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,150
Messages
2,570,853
Members
47,394
Latest member
Olekdev

Latest Threads

Top