{
    "content": [
        {
            "type": "text",
            "text": "# WebSearch (man)\n\n## NAME\n\nWebSearch - a web-searching application demonstrating WWW::Search\n\n## DESCRIPTION\n\nThis program is provides a command-line interface to web search engines, listing all URLs\nfound for a given query.  This program also provides a simple demonstration of the\nWWW::Search Perl library for web searches.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **OPTIONS** (13 subsections)\n- **ENVIRONMENT VARIABLES**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "WebSearch",
        "section": "",
        "mode": "man",
        "summary": "WebSearch - a web-searching application demonstrating WWW::Search",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-g",
                "long": "--gui",
                "arg": null,
                "description": "Perform the search to mimic the default browser-based search. Not implemented for all backends, see the documentation for each backend. --list Prints to STDERR a \\n-separated list of installed backends. --max maxcount, -m maxcount Specify the maximum number of hits to retrieve. --option ostring, -o ostring 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."
            },
            {
                "flag": "-c",
                "long": "--count",
                "arg": null,
                "description": "As the first line of output, print the approximate hit count. As the last line of output, print the actual hit count."
            },
            {
                "flag": "-t",
                "long": "--terse",
                "arg": null,
                "description": "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!"
            },
            {
                "flag": "-a",
                "long": "--all",
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-r",
                "long": "--raw",
                "arg": null,
                "description": "For each hit result, print the raw HTML. Not implemented for all backends."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Verbose mode. Enumerate the returned URLs and show the description, score, date, etc. for each."
            },
            {
                "flag": "-V",
                "long": "--VERSION",
                "arg": null,
                "description": "Print version information and exit immediately."
            },
            {
                "flag": "-d",
                "long": "--debug",
                "arg": "<i>",
                "description": "Display back-end debugging information (with debug level <i>)"
            },
            {
                "flag": "",
                "long": "--host",
                "arg": "<hostname.sub.domain>",
                "description": "Set the host option for the WWW::Search object (backend-dependent)."
            },
            {
                "flag": "",
                "long": "--port",
                "arg": "<i>",
                "description": "Set the port option for the WWW::Search object (backend-dependent)."
            },
            {
                "flag": "",
                "long": "--username",
                "arg": "<bbunny>",
                "description": "Set the username with which to login to the backend."
            },
            {
                "flag": "",
                "long": "--password",
                "arg": "<c4rr0t5>",
                "description": "Set the password with which to login to the backend."
            },
            {
                "flag": "-l",
                "long": "--lwpdebug",
                "arg": null,
                "description": "Display low-level libwww-perl debugging information"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "WebSearch [-m MaxCount] [-e SearchEngine] [-o option] [-o option...] [-ardvV] query",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 10,
                "subsections": [
                    {
                        "name": "--gui, -g",
                        "lines": 12,
                        "flag": "-g",
                        "long": "--gui"
                    },
                    {
                        "name": "--count, -c",
                        "lines": 3,
                        "flag": "-c",
                        "long": "--count"
                    },
                    {
                        "name": "--terse, -t",
                        "lines": 3,
                        "flag": "-t",
                        "long": "--terse"
                    },
                    {
                        "name": "--all, -a",
                        "lines": 4,
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "--raw, -r",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--raw"
                    },
                    {
                        "name": "--verbose, -v",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--VERSION, -V",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--VERSION"
                    },
                    {
                        "name": "--debug <i>, -d <i>",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--debug",
                        "arg": "<i>"
                    },
                    {
                        "name": "--host <hostname.sub.domain>",
                        "lines": 2,
                        "long": "--host",
                        "arg": "<hostname.sub.domain>"
                    },
                    {
                        "name": "--port <i>",
                        "lines": 2,
                        "long": "--port",
                        "arg": "<i>"
                    },
                    {
                        "name": "--username <bbunny>",
                        "lines": 2,
                        "long": "--username",
                        "arg": "<bbunny>"
                    },
                    {
                        "name": "--password <c4rr0t5>",
                        "lines": 2,
                        "long": "--password",
                        "arg": "<c4rr0t5>"
                    },
                    {
                        "name": "--lwpdebug, -l",
                        "lines": 2,
                        "flag": "-l",
                        "long": "--lwpdebug"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 16,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "WebSearch - a web-searching application demonstrating WWW::Search\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "WebSearch [-m MaxCount] [-e SearchEngine] [-o option] [-o option...] [-ardvV] query",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "This program is provides a command-line interface to web search engines, listing all URLs\nfound for a given query.  This program also provides a simple demonstration of the\nWWW::Search Perl library for web searches.\n\nThe program supports a number of search engines; use WebSearch --list to see which backends\nare installed.\n\nA more sophisticated client is AutoSearch which maintains a change list of found objects.\n\nFor examples and hints about searches, see AutoSearch.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "WebSearch uses Getopt::Long, so you can use double-minus with long option names, or single-\nminus with one-letter abbreviations.\n\n--engine ename, -e ename\nThe string ename is the name of (the module for) the desired search engine.\nCapitalization matters.  See `perldoc WWW::Search` to find out what the default is\n(probably Null).\n\nUse --list to get a list of installed backends.\n",
                "subsections": [
                    {
                        "name": "--gui, -g",
                        "content": "Perform the search to mimic the default browser-based search.  Not implemented for\nall backends, see the documentation for each backend.\n\n--list  Prints to STDERR a \\n-separated list of installed backends.\n\n--max maxcount, -m maxcount\nSpecify the maximum number of hits to retrieve.\n\n--option ostring, -o ostring\nSpecify a search-engine option in the form 'key=value' (or just 'key').  Can be\nrepeated for as many options are needed.  Keys can be repeated.\n",
                        "flag": "-g",
                        "long": "--gui"
                    },
                    {
                        "name": "--count, -c",
                        "content": "As the first line of output, print the approximate hit count.  As the last line of\noutput, print the actual hit count.\n",
                        "flag": "-c",
                        "long": "--count"
                    },
                    {
                        "name": "--terse, -t",
                        "content": "Do not print any URLs.  Only useful if you also specify --count.  If you specify\n--terse but not --count, there will be no output no matter how many hits are found!\n",
                        "flag": "-t",
                        "long": "--terse"
                    },
                    {
                        "name": "--all, -a",
                        "content": "For each hit result, print all the URLs that the search engine indicated were\nequivalent to it.  (Some URLs may refer to the same object.)  Can be combined with\n--verbose; can not be combined with --raw.\n",
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "--raw, -r",
                        "content": "For each hit result, print the raw HTML.  Not implemented for all backends.\n",
                        "flag": "-r",
                        "long": "--raw"
                    },
                    {
                        "name": "--verbose, -v",
                        "content": "Verbose mode.  Enumerate the returned URLs and show the description, score, date,\netc. for each.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "--VERSION, -V",
                        "content": "Print version information and exit immediately.\n",
                        "flag": "-V",
                        "long": "--VERSION"
                    },
                    {
                        "name": "--debug <i>, -d <i>",
                        "content": "Display back-end debugging information (with debug level <i>)\n",
                        "flag": "-d",
                        "long": "--debug",
                        "arg": "<i>"
                    },
                    {
                        "name": "--host <hostname.sub.domain>",
                        "content": "Set the host option for the WWW::Search object (backend-dependent).\n",
                        "long": "--host",
                        "arg": "<hostname.sub.domain>"
                    },
                    {
                        "name": "--port <i>",
                        "content": "Set the port option for the WWW::Search object (backend-dependent).\n",
                        "long": "--port",
                        "arg": "<i>"
                    },
                    {
                        "name": "--username <bbunny>",
                        "content": "Set the username with which to login to the backend.\n",
                        "long": "--username",
                        "arg": "<bbunny>"
                    },
                    {
                        "name": "--password <c4rr0t5>",
                        "content": "Set the password with which to login to the backend.\n",
                        "long": "--password",
                        "arg": "<c4rr0t5>"
                    },
                    {
                        "name": "--lwpdebug, -l",
                        "content": "Display low-level libwww-perl debugging information\n",
                        "flag": "-l",
                        "long": "--lwpdebug"
                    }
                ]
            },
            "ENVIRONMENT VARIABLES": {
                "content": "The environment variable httpproxy (or HTTPPROXY) specifies a proxy, if any.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "For the library, see WWW::Search.\n\nFor a more sophisticated client, see AutoSearch.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "\"WebSearch\" was written by John Heidemann, <johnh@isi.edu>.  \"WebSearch\" is maintained by\nMartin Thurn, <mthurn@cpan.org>.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 1996-1997 University of Southern California.  All rights reserved.\n\nRedistribution and use in source and binary forms are permitted provided that the above\ncopyright notice and this paragraph are duplicated in all such forms and that any\ndocumentation, advertising materials, and other materials related to such distribution and\nuse acknowledge that the software was developed by the University of Southern California,\nInformation Sciences Institute.  The name of the University may not be used to endorse or\npromote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nWITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.\n\n\n\nperl v5.30.3                                 2020-09-10                                WEBSEARCH(1p)",
                "subsections": []
            }
        }
    }
}