OPENSEA...DISCOVER(1)
π OPENSEA...DISCOVER(1) π
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's literally the cutest little tool for sniffing out OpenSearch links. pull up a chair π«Ά
β¨ NAME β¨
opensearch-discover β find an OpenSearch link from a given URL. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
opensearch-discover [-q] [-v] [-t TITLE] [-1|-a] [-h] [URL]
π¦ DESCRIPTION π¦
so what actually happens: it loads up the URL you handed it, goes digging around inside for a link pointing at an OpenSearch description URL, and then prints that URL right back at you. main character behaviour, no cap β¨
π OPTIONS π
-q,--quietβ gives you absolutely zero output when stuff goes wrong π like, silence. so if you wanna know what broke, you gotta peek at the exit code instead (go read DIAGNOSTICS, bestie).-v,--verboseβ chatty mode, she shows titles alongside the links. pair it with-aif you wanna see all the searches available π₯-t TITLE,--title=TITLEβ only show links that match TITLE, and TITLE is a case-insensitive perl regular expression, so go wild. for example,-t bookwould matchBook Search, and-t b.*kwould matchBook SearchorBaby Springbokπ¦-1,--firstβ only shows the first (matching) link. this is the default, she's lowkey chill like that.-a,--allβ shows all the (matching) links. greedy queen π-h,--helpβ displays a short help message. when in doubt π«Ά
β DIAGNOSTICS β
the exit codes are the whole vibe check, so listen up:
- on success, it prints the address of the OpenSearch description file and returns
0π - if it can't load the given URL, it returns
1π - if the given URL doesn't contain a link to an OpenSearch description file, it returns
2π - if required perl modules are missing, it returns
3π
π DEPENDENCIES π
she needs modules from libwww-perl and HTML::Parser (on Debian that's the package libhtml-parser-perl). feed her right and she'll never let you down π
π BUGS π
none known, icon behaviour fr fr. but if you do find any, please report them to ianb@erislabs.net π§
π SEE ALSO π
opensearch(1), opensearch-genquery(1), surfraw(1), WWW::OpenSearch(3pm), <http://www.opensearch.org/> β the whole friend group, go say hi πΈ
π AUTHOR π
Ian Beckwith <ianb@erislabs.net> β the legend who made this β¨
π COPYRIGHT AND LICENSE π
Copyright 2006 Ian Beckwith <ianb@erislabs.net>
Licensed under the same terms as surfraw.
okay and for the cute little sign-off: this page is running on perl v5.36.0, dated 2022-12-29, and it's filed under OPENSEA...DISCOVER(1) because apparently even the manual page title got truncated and honestly? relatable. go find some search links, bestie ππ¦
π¦ where this page comes from
- debian bookworm: surfraw-extra 2.3.0-2 Β· LicenseRef-public-domain
- debian trixie: surfraw-extra 2.3.0-2 Β· LicenseRef-public-domain
- ubuntu noble: surfraw-extra 2.3.0-2 Β· LicenseRef-public-domain
- ubuntu questing: surfraw-extra 2.3.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms