Skip to content

A simple script that let you quickly back up all images on the wiki via the command line.

License

Notifications You must be signed in to change notification settings

dragon-fish/get-wiki-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Wiki Images CLI

A simple command line that let you quickly back up all images on the wiki. 一键搬家跑路必备脚本

Install

# Via yarn
yarn global add get-wiki-images
# Or via npm
npm i -g get-wiki-images

Usage

[user@your-computer ~]$ get-wiki-images
? Please enter the api.php URL for the wiki: https://en.wikipedia.org/w/api.php
? Dir to save images: ./en.wikipedia.org/w
? Download from?(E.g. File:塞西莉亚花.png)
[get-wiki-images] Start getting file list
[get-wiki-images]
# ...

Use custom dir

Files save at ./<wgServerName[wgScriptPath]>/ by default.

e.g. You run this script at /tmp. Images from bar.wiki.com will be save at /tmp/bar.wiki.com/

You can specify a custom folder by answering the question.

About

A simple script that let you quickly back up all images on the wiki via the command line.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published