diff options
| author | Cody Logan <clpo13@gmail.com> | 2023-10-02 10:01:32 -0700 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2023-10-02 10:18:36 -0700 |
| commit | 62b815f0fa083b8336f8ac36225fe0ba9838d202 (patch) | |
| tree | 557ee399134139985e345d5bc3edb3c1319555eb /wikiget.1.md | |
| parent | 75a79785d851efa319f4216e0d3471d30a02154a (diff) | |
| download | wikiget-62b815f0fa083b8336f8ac36225fe0ba9838d202.tar.gz wikiget-62b815f0fa083b8336f8ac36225fe0ba9838d202.zip | |
Add initial manpage
Diffstat (limited to 'wikiget.1.md')
| -rw-r--r-- | wikiget.1.md | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/wikiget.1.md b/wikiget.1.md new file mode 100644 index 0000000..01dcd5e --- /dev/null +++ b/wikiget.1.md @@ -0,0 +1,108 @@ +% WIKIGET(1) Version 0.5.1 | Wikiget User Manual +% Cody Logan <clpo13@gmail.com> +% October 2, 2023 + +# NAME + +wikiget - download files from MediaWiki sites + +# SYNOPSIS + +**wikiget** +[\-**h**] [\-**V**] [\-**q**|\-**v**] [\-**f**] [\-**s** *SITE*] [\-**p** *PATH*] +[\-\-**username** *USERNAME*] [\-\-**password** *PASSWORD*] +[\-**o** *OUTPUT* | \-**a**] [\-**l** *LOGFILE*] +*FILE* + +# DESCRIPTION + +Something like **wget**(1) for downloading a file from MediaWiki sites (like Wikipedia or Wikimedia Commons) +using only the file name or the URL of its description page. + +# OPTIONS + +*FILE* + +: The file to be downloaded. If *FILE* is in the form *File:Example.jpg* or *Image:Example.jpg*, it will be + fetched from the default site, which is "commons.wikimedia.org". If it's the fully-qualified URL of a file + description page, like *https://en.wikipedia.org/wiki/File:Example.jpg*, the file is fetched from the site + in the URL, in this case "en.wikipedia.org". + +\-**s**, \-\-**site** *SITE* + +: MediaWiki site to download from. Will not have any effect if the full URL is given in the *FILE* parameter. + +\-**p**, \-\-**path** *PATH* + +: Script path for the wiki, where "index.php" and "api.php" live. On Wikimedia sites, it's "/w/", the default, + but other sites may use "/" or something else entirely. + +\-\-**username** *USERNAME* + +: Username for private wikis that require a login even for read access. + +\-\-**password** *PASSWORD* + +: Password for private wikis that require a login even for read access. + +\-**o**, \-\-**output** *OUTPUT* + +: By default, the output filename is the same as the remote filename (without the File: or Image: prefix), + but this can be changed with this option. + +\-**l**, \-\-**logfile** *LOGFILE* + +: Specify a logfile, which will contain detailed information about the download process. If the logfile already + exists, new log information is appended to it. + +\-**f**, \-\-**force** + +: Force overwritng of existing files. + +\-**a**, \-\-**batch** + +: If this flag is set, *FILE* will be treated as an input text file containing multiple files to be downloaded, + one filename or URL per line. If an error is encountered during download, execution stops immediately and the + offending filename is printed. + +\-**v**, \-\-**verbose** + +: Print additional information, such as the site used and the full URL of the file. Additional invocations will + increase the level of detail. + +\-**q**, \-\-**quiet** + +: Silence warnings and minimize printed output. + +\-**h**, \-\-**help** + +: Print a brief summary of these options. + +# EXAMPLES + +``` +wikiget File:Example.jpg +wikiget --site en.wikipedia.org File:Example.jpg +wikiget https://en.wikipedia.org/wiki/File:Example.jpg -o test.jpg +``` + +# BUG REPORTS + +<https://github.com/clpo13/wikiget/issues> + +# LICENSE + +Copyright (C) 2018-2023 Cody Logan and contributors + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. |
