.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "WEBSEARCH 1p" .TH WEBSEARCH 1p "2020-09-10" "perl v5.30.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" WebSearch \- a web\-searching application demonstrating WWW::Search .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBWebSearch [\-m MaxCount] [\-e SearchEngine] [\-o option] [\-o option...] [\-ardvV] query\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" This program is provides a command-line interface to web search engines, listing all URLs found for a given query. This program also provides a simple demonstration of the WWW::Search Perl library for web searches. .PP The program supports a number of search engines; use WebSearch \-\-list to see which backends are installed. .PP A more sophisticated client is AutoSearch which maintains a change list of found objects. .PP For examples and hints about searches, see AutoSearch. .SH "OPTIONS" .IX Header "OPTIONS" WebSearch uses Getopt::Long, so you can use double-minus with long option names, or single-minus with one-letter abbreviations. .IP "\-\-engine e_name, \-e e_name" 8 .IX Item "--engine e_name, -e e_name" The string e_name is the name of (the module for) the desired search engine. Capitalization matters. See `perldoc WWW::Search` to find out what the default is (probably Null). .Sp Use \-\-list to get a list of installed backends. .IP "\-\-gui, \-g" 8 .IX Item "--gui, -g" Perform the search to mimic the default browser-based search. Not implemented for all backends, see the documentation for each backend. .IP "\-\-list" 8 .IX Item "--list" Prints to \s-1STDERR\s0 a \en\-separated list of installed backends. .IP "\-\-max max_count, \-m max_count" 8 .IX Item "--max max_count, -m max_count" Specify the maximum number of hits to retrieve. .IP "\-\-option o_string, \-o o_string" 8 .IX Item "--option o_string, -o o_string" Specify a search-engine option in the form 'key=value' (or just \&'key'). Can be repeated for as many options are needed. Keys can be repeated. .IP "\-\-count, \-c" 8 .IX Item "--count, -c" As the first line of output, print the approximate hit count. As the last line of output, print the actual hit count. .IP "\-\-terse, \-t" 8 .IX Item "--terse, -t" Do not print any URLs. Only useful if you also specify \-\-count. If you specify \-\-terse but not \-\-count, there will be no output no matter how many hits are found! .IP "\-\-all, \-a" 8 .IX Item "--all, -a" For each hit result, print all the URLs that the search engine indicated were equivalent to it. (Some URLs may refer to the same object.) Can be combined with \-\-verbose; can not be combined with \&\-\-raw. .IP "\-\-raw, \-r" 8 .IX Item "--raw, -r" For each hit result, print the raw \s-1HTML.\s0 Not implemented for all backends. .IP "\-\-verbose, \-v" 8 .IX Item "--verbose, -v" Verbose mode. Enumerate the returned URLs and show the description, score, date, etc. for each. .IP "\-\-VERSION, \-V" 8 .IX Item "--VERSION, -V" Print version information and exit immediately. .IP "\-\-debug , \-d " 8 .IX Item "--debug , -d " Display back-end debugging information (with debug level ) .IP "\-\-host " 8 .IX Item "--host " Set the _host option for the WWW::Search object (backend-dependent). .IP "\-\-port " 8 .IX Item "--port " Set the _port option for the WWW::Search object (backend-dependent). .IP "\-\-username " 8 .IX Item "--username " Set the username with which to login to the backend. .IP "\-\-password " 8 .IX Item "--password " Set the password with which to login to the backend. .IP "\-\-lwpdebug, \-l" 8 .IX Item "--lwpdebug, -l" Display low-level libwww-perl debugging information .SH "ENVIRONMENT VARIABLES" .IX Header "ENVIRONMENT VARIABLES" The environment variable \fIhttp_proxy\fR (or \fI\s-1HTTP_PROXY\s0\fR) specifies a proxy, if any. .SH "SEE ALSO" .IX Header "SEE ALSO" For the library, see WWW::Search. .PP For a more sophisticated client, see AutoSearch. .SH "AUTHOR" .IX Header "AUTHOR" \&\f(CW\*(C`WebSearch\*(C'\fR was written by John Heidemann, . \&\f(CW\*(C`WebSearch\*(C'\fR is maintained by Martin Thurn, . .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 1996\-1997 University of Southern California. All rights reserved. .PP 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. .PP \&\s-1THIS SOFTWARE IS PROVIDED \*(L"AS IS\*(R" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\s0