home *** CD-ROM | disk | FTP | other *** search
- infocenter Ebay {
- 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.
- }
-
- Ebay::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 = "eBay";
-
- // 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 Ebay.com
- Ebay::Search
- {
- // QueryURL is the formatting parameter for constructing
- // the query URL. Members include "base", "term", "midterm",
- // and "end"
-
- QueryURL.base = "http://search.ebay.com/search/search.dll?MfcISAPICommand=GetResult&ht=1&SortProperty=MetaEndSort&query=";
- QueryURL.term = "<term>";
- QueryURL.midterm = "+";
- QueryURL.items = "&skip=<items>";
- QueryURL.setinitialpage = "No";
-
- // QueryURL also supports pages:
- // QueryURL.page = "&page=<page>";
- // QueryURL.page0 = "&page=<page>"; (zero-based)
-
- // ParseSpec handles the start and end of terms, and the
- // start of data, that type of thing. The below is fairly
- // explanatory. Any field with neglected termstart and termend
- // will not be parsed by Chameleon.
-
- ParseSpec.termstart.URL = "http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=";
- ParseSpec.termend.URL = "\">";
-
- ParseSpec.termstart.Title = "";
- ParseSpec.termstart.Title.offset = 2;
- ParseSpec.termend.Title = "</a>";
-
- ParseSpec.termstart.Price = "<font size=3><b>";
- ParseSpec.termstart.Price.offset = 16;
- ParseSpec.termend.Price = "</b>";
-
- ParseSpec.termstart.Bids = "<font size=3>";
- ParseSpec.termstart.Bids.offset = 13;
- ParseSpec.termend.Bids = "</font>";
-
- ParseSpec.termstart.Ends = "size=3>";
- ParseSpec.termstart.Ends.offset = 7;
- ParseSpec.termend.Ends = "</font>";
-
- ParseSpec.nextpage = "<input type=\"submit\" value=\"Next\">";
- }
-
-
-