View Single Post
Old May 22nd, 2006, 11:06 AM   #101
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by zem52887
Or do you mean I should merely select a link to use to test it myself rather than using the general yahoo! index link which then undergoes the functions.
Yep. Generally speaking, programmers create a function and feed it test data (e.g. an appropriate URL) in order to test that it works.

Quote:
Originally Posted by zem52887
Yeah I forgot about the for-loops and what they're "for"... and you were right. The script is working now, however, it is retrieving not only the company_urls but in some cases it's retrieving the link for a company quote page, and in some cases non-existent links (it seems).
It could be that you need a different table. Remember that in HTML, tables can exist inside other tables. Thus, it's possible that within table[1] exists table[6], which contains more specific data. Try some of the other tables on the page and see if there aren't any that can narrow down your search.
Arevos is offline   Reply With Quote