
October 15th, 2005, 10:53 AM
|
|
Contributing User
|
|
Join Date: Jul 2004
Posts: 135
  
Time spent in forums: 1 Day 1 h 16 m 57 sec
Reputation Power: 7
|
|
|
Automating File Downloading Script
I'm looking for a way of automating the process of obtaining Yahoo historical stock quotes. Yahoo allows a user to download historical quotes for a particular ticker symbol in a ".csv" file. I would like to write a script that will allow me to have the line below in something like a batch file. From line to line in the batch file, the same line shown below would appear, but with a different ticker symbol (the link below has IBM as the current ticker).
http://ichart.yahoo.com/table.csv?s=IBM&a=00&b=2&c=1962&d=05&e=30&f=2004&g=d&ignore=.csv
The problems that I'm encountering are:
1) I would like to do this somehow without having Internet Explorer being loaded each time
2) I would don't want a file download confirmation box appearing for each file to be downloaded
3) I would like to have control as to where each downloaded file is placed on my hard drive
I'm not totally convinced that this "batch file" approach is the correct way to go about doing this, but it was the best that I could think of. I'd prefer to write a program of some sort to handle this, but the biggest obstacle so far for me is finding a way of getting past the 3 problems mentioned above. If there is a better way of tackling this task I would appreciate hearing about it.
|