|
NAMEAutoSearch -- a web-search tracking applicationSYNOPSISAutoSearch [--stats] [--verbose] -n "Query Name" -s "query string" --engine engine [--mail you@where.com] [--options "opt=val"]... [--filter "filter"] [--host host] [--port port] [--userid bbunny --password c4rr0t5] [--ignore_channels KABC,KCBS,KNBC] qidAutoSearch --VERSION AutoSearch --help AutoSearch --man DESCRIPTIONAutoSearch performs a web-based search and puts the results set in qid/index.html. Subsequent searches (i.e., the second form above) AutoSearch determine what changes (if any) occured to the results sent since the last run. These incremental changes are recorded in qid/YYYYMMDD.html.AutoSearch is amenable to be run as a cron job because all the input parameters are saved in the web pages. AutoSearch can act as a automated query agent for a particular search. The output files are designed to be a set of web pages to easily display the results set with a web browser. Example: AutoSearch -n 'LSAM Replication' -s '"lsam replication"' -e AltaVista replication_query This query (which should be all on one line) creates a directory replication_query and fills it with the fascinating output of the AltaVista query on "lsam replication", with pages titled ``LSAM Replication''. (Note the quoting: the single quotes in '"lsam replication"' are for the shell, the double quotes are for AltaVista to search for the phrase rather than the separate words.) A more complicated example: AutoSearch -n 'External Links to LSAM' -s '(link:www.isi.edu/lsam or link:www.isi.edu/~lsam) -url:isi.edu' -e AltaVista::AdvancedWeb -o coolness=hot This query does an advanced AltaVista search and specifies the (hypothetical) ``coolness'' option to the search engine. OPTIONS
DESCRIPTIONAutoSearch submits a query to a search engine, produces HTML pages that reflect the set of 'hits' (filtered search results) returned by the search engine, and tracks these results over time. The URL and title are displayed in the qid/index.html, the URL, the title, and description are displayed in the 'weekly' files.To organize these results, each search result is placed in a query information directory (qid). The directory becomes the search results 'handle', an easy way to track a set of results. Thus a qid of "/usr/local/htdocs/lsam/autosearch/load_balancing" might locate the results on your web server at "http://www.isi.edu/lsam/autosearch/load_balancing". Inside the qid directory you will find files relating to this query. The primary file is index.html, which reflects the latest search results. Every not-filtered hit for every search is stored in index.html. When a hit is no longer found by the search engine it a removed from index.html. As new results for a search are returned from the search engine they are placed in index.html. At the bottom of index.html, there is a heading "Weekly Search Results", which is updated each time the search is submitted (see "AUTOMATED SEARCHING"). The list of search runs is stored in reverse chronological order. Runs which provide no new information are identified with No Unique Results found for search on <date> Runs which contain changes are identified by Web search results for search on <date> which will be linked a page detailing the changes from that run. Detailed search results are noted in weekly files. These files are named YYYYMMDD.html and are stored in the qid directory. The weekly files include THE URL, title, and a the description (if available). The title is a link to the original web page. AUTOMATED SEARCHINGOn UNIX-like systems, cron(1) may be used to establish periodic searches and the web pages will be maintained by AutoSearch. To establish the first search, use the first example under SYNOPSIS. You must specify the qid, query name and query string. If any of the items are missing, you will be interactively prompted for the missing item(s).Once the first search is complete you can re-run the search with the second form under SYNOPSIS. A cron entry like: 0 3 * * 1 /nfs/u1/wls/AutoSearch.pl /www/div7/lsam/autosearch/caching might be used to run the search each Monday at 3:00 AM. The query name and query string may be repeated; but they will not be used. This means that with a cron line like: 0 3 * * 1 /nfs/u1/wls/AutoSearch.pl /www/div7/lsam/autosearch/caching -n caching -s caching a whole new search series can be originated by rm -r /www/div7/lsam/autosearch/caching However, the only reason to start a new search series would be to throw away the old weekly files. We don't recommend running searches more than once per day, but if so the per-run files will be updated in-place. Any changes are added to the page with a comment that "Recently Added:"; and deletions are indicated with "Recently Suspended:." CHANGING THE LOOK OF THE PAGESThe basic format of these two pages is simple and customizable. One requirement is that the basic structure remain unchanged. HTML comments are used to identify sections of the document. Almost everything can be changed except for the strings which identify the section starts and ends.Noteworthy tags and their meaning:
The remainder of the tags fall into a triplet of ~Heading, ~Template, and ~, where ~ is Summary, Weekly, Appended, and Suspended. The sub-sections appear in the order given. To produce a section AutoSearch outputs the heading, the template, the section, n copies of the formatted data, and an /section. The tags and their function are:
You can edit these values in the qid/index.html page of an existing search. The file first_index.html (in the directory above qid) will be used as a default template for new queries. Examples of these files can be seen in the pages under "http://www.isi.edu/lsam/tools/autosearch/", or in the output generated by a new AutoSearch. FILES
Optional files first_index.html and first_date.html are used for the initial search as a template for qid/index.html and date.html, respectively. If either of these files does not exist; a default-default template is stored within the AutoSearch source. The intention of these two files is to permit a user to establish a framework for a group of search sets which have a common format. By leaving the default query name and query string alone, they will be overridden by command line inputs. SEE ALSOFor the library, see WWW::Search, for the perl regular expressions, see perlre.AUTHORSWm. L. SchedingAutoSearch is a re-implementation of an earlier version written by Kedar Jog. COPYRIGHTCopyright (C) 1996-1997 University of Southern California. All rights reserved.Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of Southern California, Information Sciences Institute. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. DESIRED FEATURESThese are good ideas that people have suggested.
BUGSNone known at this time; please inform the maintainer mthurn@cpan.org if any crop up.
Visit the GSP FreeBSD Man Page Interface. |