Write a program that accesses eBay auctions by item number, and report on their progress, thus providing a useful tracking tool. Such programs will be useful later if you want to gather data for statistical studies. You should probably start by looking around the eBay site a little, just to get familiar with it.
Once you have the number of the item you are interested in tracking, the page
you will need to parse has the URL of the form
http://cgi.ebay.com/ws/eBayISAPI.dll?MfcISAPICommand=ViewItem&item=
nnnnnnnnn.
The important thing to note here is
that the only element of the URL which changes is the ID number.
Please be extra careful not to interfere with the eBay site.
Use sample pages to test. Thanks.
The program should, at the minimum,
For those of you less familiar with JavaTM, there is a complete description of all Java 1.1 classes and methods at http://www.javasoft.com/products/jdk/1.1/docs/api/packages.html, and there is a good online tutorial at http://java.sun.com/docs/books/tutorial/
We provide a helper class HTMLTokenizer.java, which incorporates the functionality of fetching an HTML file and parsing it into a sequence of tokens. For more information about the interface of HTMLTokenizer.java, see here. We also include three small example programs to demonstrate the usage of HTMLTokenizer.java. They are Test1.java, Test2.java and Test3.java.