add "swh web search" command to perform archive searches via the CLI
It would be useful to be able to perform archive.s.o web searches on the command line, obtaining a list of visits as an answer, analogous to what the Web UI returns in-browser right now (see: example).
Proposal is to add a "search" CLI command to the current web client, making it usable as swh web search
.
How to map the current search parameters to CLI options (e.g., whether to search in metadata or not, how to filter results based on successful visits, etc.) remains to be discussed.
One use case of this is swh-fuse, which will allow to start navigating the archive from origin URLs, but there is no easy way to obtain the right origin URLs at the moment, short of context-switching between Web UI and the CLI, which is annoying.
Migrated from T2822 (view on Phabricator)