WEBSEARCH(1)
π WEBSEARCH(1) Β· User Contributed Perl Documentation π
okay bestie, this is the manual for WebSearch, a command-line app for the User Contributed Perl Documentation π
Let's get into it.
β¨ NAME β¨
WebSearch π¦ is a web-searching application that doubles as a demo of WWW::Search. Slay.
π SYNOPSIS π
Here's how you call it:
WebSearch [-m MaxCount] [-e SearchEngine] [-o option] [-o option...]
[-ardvV] query
πΈ DESCRIPTION πΈ
okay so WebSearch is a command-line interface to web search engines π» It lists every URL it finds for a given query. ngl it's also a simple demo of the WWW::Search Perl library for web searches, so it's giving learning tool too π§
The program supports a bunch of search engines! To see which backends are installed, run WebSearch --list π
If you want something more sophisticated, check out AutoSearch, which keeps a change list of found objects π
For examples and hints about searches, see AutoSearch π«Ά
π₯ OPTIONS π₯
WebSearch uses Getopt::Long, so you can type double dashes with long option names (like --max), or a single dash with one-letter abbreviations (like -m) π
--engine e_name,-e e_nameβ pick your search engine by naming its module,e_name. Capitalization matters, so be careful π Seeperldoc WWW::Searchto find out what the default is (probably Null). Use--listto get a list of installed backends.--gui,-gβ mimics the default browser-based search. Not implemented for all backends, so check the docs for each backend πΈ--listβ prints a\n-separated list of installed backends to STDERR π--max max_count,-m max_countβ sets the max number of hits you want to retrieve π―--option o_string,-o o_stringβ sets a search-engine option in the form'key=value'(or just'key'). Repeat it as many times as you need, and keys can be repeated too π--count,-cβ the first line of output is the approximate hit count, and the last line is the actual hit count π’--terse,-tβ don't print any URLs. Only useful if you also use--countπ€«
β οΈ If you use--tersewithout--count, there will be no output at all, no matter how many hits are found!
--all,-aβ for each hit, prints all the URLs the engine says are equivalent to it (some URLs may point to the same object). Can be combined with--verbose, but can not be combined with--rawπ¦--raw,-rβ prints the raw HTML for each hit. Not implemented for all backends π§Ύ--verbose,-vβ enumerates the returned URLs and shows the description, score, date, etc. for each one β¨--VERSION,-Vβ prints version info and exits immediately π·οΈ--debug <i>,-d <i>β shows back-end debugging info at debug level<i>π--host <hostname.sub.domain>β sets the_hostoption for the WWW::Search object (depends on the backend) π--port <i>β sets the_portoption for the WWW::Search object (depends on the backend) π--username <bbunny>β sets the username used to log in to the backend π°--password <c4rr0t5>β sets the password used to log in to the backend π--lwpdebug,-lβ shows low-level libwww-perl debugging info π΅οΈ
π ENVIRONMENT VARIABLES π
The environment variable http_proxy (or HTTP_PROXY) specifies a proxy, if you have one π°οΈ
π¦ SEE ALSO π¦
- For the library, see
WWW::Search. - For a more sophisticated client, see AutoSearch.
π AUTHOR π
"WebSearch" was written by John Heidemann, <johnh@isi.edu>. It's maintained by Martin Thurn, <mthurn@cpan.org> π«Ά
π COPYRIGHT π
Copyright (c) 1996-1997 University of Southern California. All rights reserved.
Redistribution and use in source and binary forms are allowed, as long as the copyright notice and this paragraph are duplicated in all such forms. Any documentation, ads, or other materials about it have to say the software was developed by the University of Southern California, Information Sciences Institute ποΈ The University's name can't 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. That includes (without limitation) the implied warranties of merchantability and fitness for a particular purpose. So: no guarantees, bestie.
That's the whole tea, bestie! π Happy searching β¨ π¦ perl v5.42.0 Β· 2025-07-25 Β· WEBSEARCH(1) π
π¦ where this page comes from
- fedora 43: perl-WWW-Search 2.519-17.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms