<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    A more direct question on accessing stock information from Yahoo.<br>
    <br>
    First, use your browser to go to: 
    <a class="moz-txt-link-freetext" href="http://finance.yahoo.com/q/cp?s=%5EGSPC+Components">http://finance.yahoo.com/q/cp?s=%5EGSPC+Components</a><br>
    <br>
    Now, you see the first 50 rows of a 500 row table of information on
    S&P 500 index. You can LM click on<br>
    <br>
      1 -50 of 500 |First|Previous|Next|Last<br>
    <br>
    below the table to position to any of the 10 pages.<br>
    <br>
    I would like to use Python to do the following.<br>
    <br>
    <b>Loop on each of the 10 pages and for each page extract
      information for each row --- How can this be accomplished
      automatically in Python?</b><br>
    <br>
    Let's take the first page (as shown by default). It is easy to see
    the link to the data for "A" is <a class="moz-txt-link-freetext" href="http://finance.yahoo.com/q?s=A">http://finance.yahoo.com/q?s=A</a>. That
    is, I can just move <br>
    my cursor over the "A" and I see this URL in the message at the
    bottom of my browser (Explorer 8). If I LM click on "A" then I will
    go to this<br>
    link --- Do this!<br>
    <br>
    You should now see a table which shows information on this stock and
    <b>this is the information that I would like to extract</b>. I would
    like to do this for all 500 stocks without the need to enter the
    symbols for them (e.g. "A", "AA", etc.). It seems clear that this
    should be possible since all the symbols are in the first column of
    each of the 50 tables --- but it is not at all clear how to extract
    these automatically in Python. <br>
    <br>
    Hopefully, you understand my problem. Again, I would like Python to
    cycle through these 10 pages and extract this information for each
    symbol in this table.<br>
    <br>
    --V<br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>