View Single Post
Old May 22nd, 2006, 7:58 AM   #92
zem52887
Hobbyist Programmer
 
Join Date: May 2006
Posts: 127
Rep Power: 3 zem52887 is on a distinguished road
I'm back...
So I think I have get_company_urls done and now I'm attempting to do get_company_data, and I've run into a few problems. (Or have some questions). The data is all contained within one table, and since they're not links but just data, I'm not sure how to sort it or format that fetch line of code. By this I mean in the past when I had to pick a particular link from a certain table with multiple links Arevos taught:

index_link = soup.fetch("table")[11].fetch("a")[2]

With the bracketed number indicating the second link within the 11th table. If I need multiple pieces of data from a singular table, will I still be able to do this?


Additionally, some of the companies have financial highlights and some don't. Moreover, some of the companies don't have financial highlights data posted but they have a blank table (not a real table, but it looks like a table on the website... it's still contained within the aformentioned table) that says "financial highlights" while some companies have a blank space where financial highlights are posted.

For example:
http://biz.yahoo.com/ic/92/92296.html (Has Financial Highlight Data)
http://biz.yahoo.com/ic/133/133036.html (No Financial Highlight Box)
http://biz.yahoo.com/ic/101/101127.html (Financial Highlights but no Data)

Thanks for everyone's help thus far, we're on the home stretch.
zem52887 is offline   Reply With Quote