home *** CD-ROM | disk | FTP | other *** search
- infocenter YahooAuction {
- action:
- Init; // Required for all infocenters.
-
- Search; // Required for NetBrilliant.
-
- field:
- URL; // All these are required for NetBrilliant.
- Title;
- Price;
- Bids;
- Ends;
-
- nextpage; // Required - this is where the value for whether
- // or not there is another page of data goes.
- }
-
- YahooAuction::Init
- {
- // Set initialization parameters.
- // NetBrilliant will access these to learn about this
- // infocenter.
-
- Category = "Auctions";
- Bitmap = "images\auctions.bmp";
- IndexOrder = 0;
- IDNumber = 0; // For convenience, make the same as the IndexOrder
- SiteName = "Yahoo";
-
- // These are the column titles in the search results
- // window. If a field is not covered here, it will
- // not appear in the window.
-
- FieldName.Title = "Item";
- FieldName.Price = "Price";
- FieldName.Bids = "Bids";
- FieldName.Ends = "Ending time (PDT)";
- }
-
- // Searches Yahoo.com
- YahooAuction::Search
- {
- // QueryURL is the formatting parameter for constructing
- // the query URL. Members include "base", "term", "midterm",
- // and "end"
-
- QueryURL.base = "http://search.auctions.yahoo.com/search/auc?p=";
- QueryURL.term = "<term>";
- QueryURL.midterm = "+";
- QueryURL.page = "&apg=<page>";
- QueryURL.end = "&alocale=1us&acc=us";
-
- ParseSpec.datastart = "Title Search Results";
-
- ParseSpec.termstart.URL = "href=\"http://page.auctions.yahoo.com/auction";
- ParseSpec.termstart.URL.offset = 6;
- ParseSpec.termend.URL = "\">";
-
- ParseSpec.termstart.Title = "";
- ParseSpec.termstart.Title.offset = 2;
- ParseSpec.termend.Title = "</a>";
-
- ParseSpec.termstart.Price = "$";
- ParseSpec.termend.Price = "</b></td><td align=center>";
-
- ParseSpec.termstart.Bids = "";
- ParseSpec.termstart.Bids.offset = 26;
- ParseSpec.termend.Bids = "</td><td align=right>";
-
- ParseSpec.termstart.Ends = "";
- ParseSpec.termstart.Ends.offset = 21;
- ParseSpec.termend.Ends = "</td></tr>";
-
- ParseSpec.nextpage = "Next 50";
- }
-
-
-