get-wiki-images

2.1.1 • Public • Published

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.

Package Sidebar

Install

npm i get-wiki-images

Weekly Downloads

0

Version

2.1.1

License

MIT

Unpacked Size

7.54 kB

Total Files

10

Last publish

Collaborators

  • dragon-fish