.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
.\"
.\" 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
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
. ds C` ""
. ds C' ""
'br\}
.el\{\
. 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 "OPENSEARCH-DISCOVER 1"
.TH OPENSEARCH-DISCOVER 1 2024-09-09 "perl v5.40.0" "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
opensearch\-discover \- Find an OpenSearch link from a given URL.
.SH SYNOPSIS
.IX Header "SYNOPSIS"
\&\fBopensearch-discover\fR [\fB\-q\fR] [\fB\-v\fR] [\fB\-t\ TITLE\fR] [\fB\-1\fR|\fB\-a\fR] [\fB\-h\fR] [\fIURL\fR]
.SH DESCRIPTION
.IX Header "DESCRIPTION"
Loads the given URL, searches it for a link to an OpenSearch
description URL, and prints that URL.
.SH OPTIONS
.IX Header "OPTIONS"
.IP "\fB\-q\fR, \fB\-\-quiet\fR" 4
.IX Item "-q, --quiet"
Give no output on errors. In this case, consult the exit code to
determine errors (See "DIAGNOSTICS").
.IP "\fB\-v\fR, \fB\-\-verbose\fR" 4
.IX Item "-v, --verbose"
Verbose: display titles with links. Combine with \fB\-a\fR to see all
available searches
.IP "\fB\-t\fR\ \fITITLE\fR, \fB\-\-title\fR=\fITITLE\fR" 4
.IX Item "-t\ TITLE, --title=TITLE"
Only display links matching \fBTITLE\fR, a case-insensitive perl regular
expression. For example, \fB\-t book\fR would match \fIBook Search\fR, and
\&\fB\-t b.*k\fR would match \fIBook Search\fR or \fIBaby Springbok\fR.
.IP "\fB\-1\fR, \fB\-\-first\fR" 4
.IX Item "-1, --first"
Only display first (matching) link. This is the default.
.IP "\fB\-a\fR, \fB\-\-all\fR" 4
.IX Item "-a, --all"
Display all (matching) links.
.IP "\fB\-h\fR, \fB\-\-help\fR" 4
.IX Item "-h, --help"
Display a short help message.
.SH DIAGNOSTICS
.IX Header "DIAGNOSTICS"
On success, prints the address of the OpenSearch description file and
returns 0.
.PP
If it cannot load the given URL, it returns 1.
.PP
If the given URL does not contain a link to an OpenSearch description
file, it returns 2.
.PP
If required perl modules are missing, it returns 3.
.SH DEPENDENCIES
.IX Header "DEPENDENCIES"
Requires modules from libwww-perl and HTML::Parser (Debian package
libhtml-parser-perl).
.SH BUGS
.IX Header "BUGS"
None known. Please report any found to ianb@erislabs.net
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fBopensearch\fR\|(1), \fBopensearch\-genquery\fR\|(1), \fBsurfraw\fR\|(1),
\&\fBWWW::OpenSearch\fR\|(3pm),
.SH AUTHOR
.IX Header "AUTHOR"
Ian Beckwith
.SH "COPYRIGHT AND LICENSE"
.IX Header "COPYRIGHT AND LICENSE"
Copyright 2006 Ian Beckwith
.PP
Licensed under the same terms as surfraw.