The code provided is an example of a VBScript class that submits stocks symbols to Yahoo's finance site, parses the returning CSV file, and converts the information into an XML document object. The main difference between this code and other stock scrapers is that this code does not pull information from the HTML presented by Yahoo, but instead uses a service available which returns the stock information as a comma seperated value (CSV) file. The advantage of this is that the code won't break when Yahoo changes thier HTML. The code assumes you are familiar with the XML DOM and XSL stylesheets. The example provided uses an XSL stylesheet for presentation, but other methods could be used. The XML objects used in the code assume that MSXML 3.0 or greater is installed on the machine. However, the code could be modified simply to account for older/other parsers. The only other requirement of the code is that Yahoo's financial site is responding correctly, which is almost always the case.
File List:
@PSC_ReadMe_6958_4.txt
1Kb
SimpleXMLStockScraper.asp
1Kb
SimpleXMLStockScraper.xsl
1Kb
SimpleXMLStockScraperClass.asp
3Kb
Similar code
Phone Number Conversion
(Popularity: ) : This class is used to interpret phone numbers to and from a database in a specific format. The format is ... Winamp Song in ASP
(Popularity: ) : This utility will save the current song, total tracks in winamp & total tracks recorded in the database to include ...