Yahoo! Finance Stock Quote Server : urllib « Network « Python Tutorial





import csv
from urllib import urlopen
u = urlopen('http://quote.yahoo.com/d/quotes.csv?s=YHOO&f=sl1d1t1c1ohgv')
for row in csv.reader(u):
  print row
f.close()










21.15.urllib
21.15.1.Yahoo! Finance Stock Quote Server
21.15.2.Download with urllin