views:

39

answers:

1

I'm looking for a solution to automate downloading of charts from stockcharts.com.

If you click on the following URLs, stockcharts will automatically generate an image file (sc.png). Note the only different is the stock ticker symbol at the end.

I would like to download these charts daily to folder on my computer.

http://stockcharts.com/h-sc/ui?p=D&b=5&g=0&id=p96079191618&a=173667279&s=ELR.TO http://stockcharts.com/h-sc/ui?p=D&b=5&g=0&id=p96079191618&a=173667279&s=GOOG http://stockcharts.com/h-sc/ui?p=D&b=5&g=0&id=p96079191618&a=173667279&s=AAPL http://stockcharts.com/h-sc/ui?p=D&b=5&g=0&id=p96079191618&a=173667279&s=KFN

I'm guessing maybe using wget, curl or perl.

thanks in advance

+2  A: 

Assuming the URLs don't change from day to day, a cron job plus wget/curl should work fine.

Amber
Agreed. A cron job is perfect for this.
Sean O'Hollaren
Sounds simple enough. I'll give it a try.
Yada