I've tried to see the page and the code GSPC it's wrong i has used ^DJI, and when you download the page code use a xml parser localize the table element and read it. I can't access from the browser to the next page it doesn't appear as a link.<br />El , Virgil Stokes <vs@it.uu.se> escribió:<br />> On 09/02/2010 08:15 PM, Hidura wrote:<br />> <br />> <br />> But what kind of data you want to download?, because the financial<br />> <br />> time it's basicly html code and you can work very well with a parser<br />> <br />> <br />> <br />> 2010/9/2, Virgil Stokesvs@it.uu.se>:<br />> <br />>    <br />> <br />> <br />>    Has anyone written code or worked with Python software for downloading<br />> <br />> financial time series data (e.g. from Yahoo financial)? If yes,  would you<br />> <br />> please contact me.<br />> <br />> <br />> <br />> --Thanks,<br />> <br />> V. Stokes<br />> <br />> --<br />> <br />> http://mail.python.org/mailman/listinfo/python-list<br />> <br />> <br />> <br />>      <br />> <br />> <br />>    <br />> <br />> <br />> Here is a snippet of python code that I am trying to use for downloading financial data; but, I do not understand why it returns information from the second HTML page.<br />> <br />> <br />> <br />>   import urllib2<br />> <br />>   '''<br />> <br />>    I am trying to read each row of the table at:<br />> <br />>     http://finance.yahoo.com/q/cp?s=^GSPC<br />> <br />>   '''<br />> <br />>   ticker = []<br />> <br />>   url = urllib2.urlopen("http://download.finance.yahoo.com/d/quotes.csv?s=@%5EGSPC&f=sl1d1t1c1ohgv&e=.csv&h=PAGE".replace('PAGE', str(0)))<br />> <br />>   data = url.read()<br />> <br />> <br />> <br />> Note, it does get all 50 rows of the first page; but, why does it also get the first row of the "next" HTML page?<br />> <br />> <br />> <br />> --V<br />> <br />> <br />> <br />> <br />> <br />> <br />>