WEBSEARCH(1)

πŸ“¦
version 2.519 Β· 2 versions
, in fedora 43

πŸŽ€ 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 πŸ™ˆ See perldoc WWW::Search to find out what the default is (probably Null). Use --list to 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 --terse without --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 _host option for the WWW::Search object (depends on the backend) 🏠
  • --port <i> β€” sets the _port option 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 (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