home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / server / netbrilliant / nb110.exe / DATA1.CAB / Data_files / scripts / buy.cham < prev    next >
Encoding:
Text File  |  2000-10-30  |  1.6 KB  |  68 lines

  1. infocenter Buy {
  2. action:
  3.   Init;
  4.   Search;
  5.   
  6. field:
  7.   URL;
  8.   Title;
  9.   Author;
  10.   Price;
  11.   Type;
  12.   Availability;
  13.  
  14.   nextpage;
  15. }
  16.  
  17. Buy::Init
  18. {
  19.   Category = "Books";
  20.   Bitmap = "images\books.bmp";
  21.   IndexOrder = 6;
  22.   IDNumber = 6;
  23.   SiteName = "Buy.com";
  24.  
  25.   FieldName.Title = "Title";
  26.   FieldName.Author = "Author";
  27.   FieldName.Type = "Type";
  28.   FieldName.Price = "Price";
  29.   FieldName.Availability = "Availability";
  30. }
  31.  
  32. Buy::Search
  33. {
  34.   QueryURL.base = "http://www.us.buy.com/retail/searchresults.asp?search_store=3&qu=";
  35.   QueryURL.term = "<term>";
  36.   QueryURL.midterm = "+";
  37.   QueryURL.page = "&pageReq= <page>";
  38.  
  39.   ParseSpec.datastart = "listed below";
  40.  
  41.   ParseSpec.termstart.URL = "href=\"product.asp";
  42.   ParseSpec.termstart.URL.offset = 6;
  43.   ParseSpec.termstart.URL.prepend = "http://www.us.buy.com/retail/";
  44.   ParseSpec.termend.URL = "\" ";
  45.  
  46.   ParseSpec.termstart.Title = "<b>";
  47.   ParseSpec.termstart.Title.offset = 3;
  48.   ParseSpec.termend.Title = "</b>";
  49.  
  50.   ParseSpec.termstart.Author = "productDescription";
  51.   ParseSpec.termstart.Author.offset = 19;
  52.   ParseSpec.termend.Author = "  ";
  53.  
  54.   ParseSpec.termstart.Type = "<span class=\"productDescription\">";
  55.   ParseSpec.termstart.Type.offset = 36;
  56.   ParseSpec.termend.Type = "</b>";
  57.  
  58.   ParseSpec.termstart.Price = "Our Price:";
  59.   ParseSpec.termstart.Price.offset = 10;
  60.   ParseSpec.termend.Price = "</span>";
  61.   
  62.   ParseSpec.termstart.Availability = "true\" class=\"usually";
  63.   ParseSpec.termstart.Availability.offset = 22;
  64.   ParseSpec.termend.Availability = "</a>";
  65.  
  66.   ParseSpec.nextpage = "Next Page";
  67. }
  68.