home *** CD-ROM | disk | FTP | other *** search
- infocenter Mercata {
- 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.
- }
-
- Mercata::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 = "Mercata";
-
- // 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 Mercata.com
- Mercata::Search
- {
- // QueryURL is the formatting parameter for constructing
- // the query URL. Members include "base", "term", "midterm",
- // and "end"
-
- QueryURL.base = "http://www.mercata.com/cgi-bin/mercata/mercata/v2/pages/search.jsp?search_text=";
- QueryURL.term = "<term>";
- QueryURL.midterm = "+";
- QueryURL.page = "&p=<page>";
-
- ParseSpec.entrystart = "<td width=\"70%\">";
-
- ParseSpec.termstart.URL = "href=\"details.jsp?";
- ParseSpec.termstart.URL.prepend = "http://www.mercata.com/cgi-bin/mercata/mercata/v2/pages/";
- ParseSpec.termend.URL = "\">";
-
- ParseSpec.termstart.Title = "";
- ParseSpec.termstart.Title.offset = 2;
- ParseSpec.termend.Title = "</a>";
-
- ParseSpec.termstart.Price = "Price:";
- ParseSpec.termstart.Price.offset = 6;
- ParseSpec.termend.Price = "</b>";
-
- ParseSpec.nextpage = "Next</a>";
- }
-
-
-