I am using Python 3.3 on Windows. I am trying to figure out how to download a .csv file from yahoo finance. It is a file for the Historical Prices.
This is the sour
since you already use BeautifulSoup and urllib:
url = BeautifulSoup(html).find('a')['href'] urllib.urlretrieve(url, '/path/to/downloads/file.csv')