How to use American Stock Exchange(AMEX) IVR System.
 
Important
 
Please turn on your desktop speakers and check the volume level settings.
 
The script demonstrates the method to obtain data from web pages. It illustrates how the Last Sale and Net Change stock figures of top ten companies are fetched from the page, http://www.amex.com.
 
When the customer makes a call, the http() plug-in establishes connection with the American Stock Exchange website to retrieve business information of top ten companies. The soft music playing in the background refreshes the caller, while the program receives the data from the internet. The program uses Text-to-Speech engine to speak out the company name and other numeric figures.
 
Each data record corresponds to a major company, the values being stored in an array. We derive the information from a webpage which is subject to constant change, consequently affecting the HTML parsing routine in the script. As a result, the developer must always update the parsing technique in accordance to the formatted report of the webpage.