Exporting and importing images in MediaWiki

后端 未结 6 1961
梦如初夏
梦如初夏 2020-12-31 10:41

How do I export and import images from and into a MediaWiki?

6条回答
  •  旧时难觅i
    2020-12-31 10:52

    - Export ALL:

    You can get all pages and all images from a MediaWiki web using [API], even you are not the owner of the web (of course when the owner hasn't disable this function):

    Step 1: Using API to get all pages title and all images url. You can write some code to do it automatically.

    Step 2: Next you use [Special:Export] to export all pages with the titles you got, and use wget to get all images you had links (like this wget -i img-list.txt).

    - Import ALL:

    Step 1: Import pages using [Special:Import]

    Step 2: Import images using [Manual:ImportImages.php].

提交回复
热议问题