2.1.1 • Published 3 years ago

get-wiki-images v2.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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.

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

2.0.0-pre.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago