批量下载股票年报财务数据
程序很简单,只是速度太慢程序代码:
from urllib import urlopen for n in xrange(600000,602000): url="http://quotes.money.,season=4,radiobutton=radiobutton,start=1999-12-31,end=2010-03-31,code=%d.html" % n webdata = urlopen(url).read() filename="%d.html" %n f = file(filename,'w') f.write(webdata) f.close()