Manual talk:Pywikibot/imagetransfer.py

From mediawiki.org
Latest comment: 2 years ago by MarioSuperstar77 in topic Importing all images from another wiki
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Transfer means[edit]

When imagetransfer.py is used, does it relay the file being transferred via a download to the user and then reupload; or does it take it direct from one wiki to another? I am looking to move large djvu files from Commons to Wikisource, and having them download and upload is just going to slow the process significantly. Thanks. billinghurst sDrewth 12:41, 4 August 2010 (UTC)Reply

error[edit]

Error message:

pywikibot.exceptions.NoPage: (dead:en, u'[[en:Http://dead.wikia.com/wiki/Paradise Plaza]]', 'Page does not exist. In rare cases, if you are certain the page does exist, look into overriding family.RversionTab')

(I modified the actual url)

pywikipedia\family.py has the following:

    def RversionTab(self, code):
        """Change this to some regular expression that shows the page we
        found is an existing page, in case the normal regexp does not work."""
        return None

So how do I change this?

Adamtheclown 10:54, 19 November 2010 (UTC)Reply

I changed it to:
return True
And I still get the same error message. Adamtheclown 11:01, 19 November 2010 (UTC)Reply

Importing all images from another wiki[edit]

I'm working on importing all images from a Wikia wiki to a Miraheze wiki. Wikia refused to provide the images when I copied the wiki. So now I have tons of broken image links in the new location. I'm told this script can help. But I can't figure it out. I have a family created and the user config file set up. But I can't figure out the command line needed. Does imagetransfer.py support importing all images or is it mainly intended for a handful? Will (Talk - contribs) 09:59, 10 October 2017 (UTC)Reply

Same, except I was trying to move my Miraheze wiki into a shared hosting site. MarioSuperstar77 (talk) 12:25, 9 May 2021 (UTC)Reply