Manual talk:Pywikibot/imageharvest.py

error message
Extracting from the page:
 * http://dead.wikia.com/wiki/Tape

C:\Users\t\Desktop\pywikipedia>imageharvest.py http://dead.wikia.com/wiki/Tape unicode test: triggers problem #3081100 What text should be added at the end of the description of each image from this url? Include image http://dead.wikia.com/wiki/http://images.wikia.com/dead/images/b/bc/wiki.png? ([y]es, [N]o, [s]top) y Give the description of this image: Specify a category (or press enter to end adding categories) Traceback (most recent call last): File "C:\Users\t\Desktop\pywikipedia\imageharvest.py", line 135, in    main(url, image_url, desc) File "C:\Users\t\Desktop\pywikipedia\imageharvest.py", line 110, in main uploadBot = upload.UploadRobot(image, description = desc) File "C:\Users\t\Desktop\pywikipedia\upload.py", line 98, in __init__ self.targetSite.forceLogin File "C:\Users\t\Desktop\pywikipedia\wikipedia.py", line 4861, in forceLogin if not self.loggedInAs(sysop = sysop): File "C:\Users\t\Desktop\pywikipedia\wikipedia.py", line 4853, in loggedInAs self._load(sysop = sysop) File "C:\Users\t\Desktop\pywikipedia\wikipedia.py", line 5932, in _load text = self.getUrl(url, sysop = sysop) File "C:\Users\t\Desktop\pywikipedia\wikipedia.py", line 5365, in getUrl % url) pywikibot.exceptions.PageNotFound: Page http://www.dead-wiki.com/w/index. php/index.php?title=Non-existing_page&action=edit&useskin=monobook could not be retrieved. Check your family file.

C:\Users\t\Desktop\pywikipedia>

It appears like it is trying to pull up index.php twice:

http://www.dead-wiki.com/w/ index.php/index.php?title=Non-existing_page&action=edit&useskin=monobook

Here is my family file:


 * 1) -*- coding: utf-8  -*-

import family

class Family(family.Family):
 * 1) dead Wiki.

def __init__(self):

family.Family.__init__(self) self.name = 'dead' #Set the family name; this should be the same as in the filename.

self.langs = { 'en': 'www.dead-wiki.com', #Put the hostname here. }

def version(self, code): return "1.6.10" #The MediaWiki version used. Not very important in most cases.

def scriptpath(self, code): return '/w/index.php' #The value of on this wiki

def apipath(self, code): return '/w/api.php' #The path of api.php

I get a:
 * unicode test: triggers problem #3081100

....error when I log in.

Adamtheclown 12:47, 15 November 2010 (UTC)