I need a script written in Perl which will go to the Yahoo Finance website, scrape some pages and return the result in a CSV file. Specifically the page is [login to view URL] On this page, the manual user is asked to select a bond type and then other criteria. For this project, the only item to be checked will be ether **Treasury** or **Treasury Zero Coupon. **The determination of which mode to be run in will be determined by a command line option. When a manual user of this page clicks the **Find Bonds** button, the user is taken to a screeen of approximately 15 bonds per page. There are approximately 209 bonds currently under treasuries, and 177 under Treasuries Zero Coupon.
The output of this script (which can be simply printed to the command line) will consist of a title line with the following heaadings:
*Type,Issue,Price,Copuon(%) Maturity,YTM(%),Current Yield(%), Fitch Ratings, Callable.
For each bond the data in the row must be returned in a valid, comma seperated value format.
Each page of results must be included, regardless of the total numberof bonds.
The script will be tested by redirecting the output into a *.csv file and loading the file into Excel. The column headings and data values must line up properly.
*