Manual:Pywikipediabot/imagetransfer.py

From MediaWiki.org
Jump to: navigation, search
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

Bug blank.svg
Subversion repository of Wikimedia has this file:
Bote Boas Vindas2.png
Pywikipediabot
scripts
Pywikipediabot Overview
Quick Start Guide
Installation
Installation (Mac)
Configuration
user-config.py
Non-Wikimedia wikis
Tutorial
Scripts
Development
Further help

v  d  e

In other languages: en - ru

Imagetransfer.py is a Pywikipediabot script that copies images from one wiki to another wiki. To transfer image to Wikimedia Commons use imagecopy.py.

[edit] Usage

    python imagetransfer.py [common-arguments] pagename [-interwiki] [-tolang:xx] [-tofamily:yy]

[edit] Arguments


  -interwiki   Look for images in pages found through interwiki links.

  -keepname    Keep the filename and do not verify description while replacing

  -tolang:xx   Copy the image to the wiki in language xx

  -tofamily:yy Copy the image to a wiki in the family yy

  -file:zz     Upload many files from textfile: [[Image:xx]]
                                                [[Image:yy]]

If pagename is an image description page, the script offers to copy the image to the target site.

If pagename is a normal page, it will offer to copy any of the images used on that page.

If -interwiki is used, any of the images used on a page are reachable via interwiki links. (i.e. The interwiki link [[Food]] is found on the page Cake. The bot will search both the food and the cake page for images).

Pywikipedia/Global Options

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox