infocenter SoftSeek { action: Init; Search; field: URL; Title; Description; Price; ReleaseDate; Rating; OperatingSystem; Downloads; nextpage; } SoftSeek::Init { Category = "Software"; Bitmap = "images\software.bmp"; IndexOrder = 2; IDNumber = 2; SiteName = "SoftSeek"; SynopsisField = "Description"; FieldName.Title = "Program Title"; FieldName.Price = "Price"; FieldName.ReleaseDate = "Release Date"; FieldName.Rating = "Rating"; FieldName.OperatingSystem = "Operating System"; FieldName.Downloads = "Downloads"; } // Searches softseek.com SoftSeek::Search { QueryURL.base = "http://softseeksearch.zdnet.com/cgi-bin/search.cgi?keywords="; QueryURL.term = ""; QueryURL.midterm = "+"; QueryURL.end = "&seekindex=indexpc&cb="; QueryURL.items = "&maxresults="; QueryURL.setinitialpage = "Yes"; // Error - forgot to escape the inner quotes. ParseSpec.entrystart = ""; // Error - was lowercase, is uppercase in the page. ParseSpec.termstart.URL = "A HREF="; ParseSpec.termstart.URL.offset = 7; ParseSpec.termstart.URL.prepend = "http://www.softseek.com"; // Error - URL does not end in a quote. ParseSpec.termend.URL = ">"; ParseSpec.termstart.Title = ""; ParseSpec.termstart.Title.offset = 1; // Error - was lowercase, is uppercase in the page. ParseSpec.termend.Title = ""; // Error - was lowercase, is uppercase in the page. ParseSpec.termstart.Description = "
"; ParseSpec.termstart.Description.offset = 4; // Add. ParseSpec.termend.Description = ""; // Error - was lowercase, is uppercase in the page. ParseSpec.termstart.OperatingSystem = ":"; // Error - used to be "Operating System". // Error - need to get past the -whole- termstart. ParseSpec.termstart.OperatingSystem.offset = 5; // Error - was lowercase, is uppercase in the page. ParseSpec.termend.OperatingSystem = ""; // Error - searching for the wrong text (??). ParseSpec.termstart.ReleaseDate = "Date:"; ParseSpec.termstart.ReleaseDate.offset = 9; ParseSpec.termend.ReleaseDate = ""; ParseSpec.nextpage = "[NEXT]"; }