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

  1. infocenter CNet {
  2. action:
  3.   Init;
  4.   Search;
  5.   
  6. field:
  7.   URL;
  8.   Title;
  9.   Description;
  10.   Price;
  11.   ReleaseDate;
  12.   Rating;
  13.   OperatingSystem;
  14.   Downloads;
  15.  
  16.   nextpage;
  17. }
  18.  
  19. CNet::Init
  20. {
  21.   Category = "Software";
  22.   Bitmap = "images\software.bmp";
  23.   IndexOrder = 2;
  24.   IDNumber = 2;
  25.   SiteName = "CNet";
  26.   SynopsisField = "Description";
  27.  
  28.   FieldName.Title = "Program Title";
  29.   FieldName.Price = "Price";
  30.   FieldName.ReleaseDate = "Release Date";
  31.   FieldName.Rating = "Rating";
  32.   FieldName.OperatingSystem = "Operating System";
  33.   FieldName.Downloads = "Downloads";
  34. }
  35.  
  36. // Searches CNet's download.com
  37. CNet::Search
  38. {
  39.   QueryURL.base = "http://download.cnet.com/downloads/1,10150,0-10001-103-0-1-7,00.html?tag=st%2Edl%2E10001%2Esbsr&qt=";
  40.   QueryURL.term = "<term>";
  41.   QueryURL.midterm = "+";
  42.   QueryURL.end = "&cn=&ca=10001";
  43.  
  44.   ParseSpec.entrystart = "<tr align=center><td align=left>";
  45.  
  46.   ParseSpec.termstart.URL = "/downloads";
  47.   ParseSpec.termstart.URL.prepend = "http://download.cnet.com";
  48.   ParseSpec.termend.URL = "\"";
  49.  
  50.   ParseSpec.termstart.Title = "";
  51.   ParseSpec.termstart.Title.offset = 2;
  52.   ParseSpec.termend.Title = "</a>";
  53.  
  54.   ParseSpec.termstart.Description = "<br>";
  55.   // Add an offset here - because the <br> will be converted to a " - ".
  56.   ParseSpec.termstart.Description.offset = 4;
  57.   ParseSpec.termend.Description = "<br>";
  58.  
  59.   ParseSpec.termstart.OperatingSystem = "</b>";
  60.   ParseSpec.termend.OperatingSystem = "<b>";
  61.  
  62.   ParseSpec.termstart.ReleaseDate = "<font face=\"ms sans serif,geneva\" size=-2>";
  63.   ParseSpec.termend.ReleaseDate = "</font>";
  64.  
  65.   ParseSpec.termstart.Downloads = "<font face=\"ms sans serif,geneva\" size=-2>";
  66.   ParseSpec.termend.Downloads = "</font>";
  67.  
  68.   ParseSpec.nextpage = "href=/downloads/0,10150,0-10001-103-0-2-7,00.html";
  69.   ParseSpec.nextpage.URL = "/downloads/0,10150,0-10001-103-0-2-7,00.html";
  70.   ParseSpec.nextpage.URL.prepend = "http://download.cnet.com";
  71. }
  72.  
  73.  
  74.