get-wiki-images
v2.1.1
Published
A simple command line that let you quickly back up all images from specified MediaWiki site.
Downloads
7
Maintainers
Readme
Get Wiki Images CLI
~~wiki 一键搬家跑路必备脚本~~
A simple command line that let you quickly back up all images from specified MediaWiki site.
Install
# Via yarn
yarn global add get-wiki-images
# Or via npm
npm i -g get-wiki-images
Or use directly: npx get-wiki-images
Usage
Follow the steps, for example:
[user@PC] /your/dir $ get-wiki-images
? Please enter the api.php URL for the wiki: https://www.some-wiki.com/api.php
? Dir to save images: /your/dir/www.some-wiki.com
? Download from? (E.g. File:塞西莉亚花.png)
Start getting file list
Finished got file list, total file: 210
=== START DOWNLOAD FILES FROM https://www.some-wiki.com/api.php ===
[= ] 5/100(5%) 334.8s File:Some_file.png
# ...
You can also directly enter the api URL: get-wiki-images https://www.some-wiki.com/api.php
Use custom dir
Files save at ./<wgServerName[wgScriptPath]>/
by default.
e.g. You run this script at /tmp
. Images from www.some-wiki.com
will be save at /tmp/www.some-wiki.com/
You can specify a custom folder by answering the question.