[SOLVED] problem in pywikibot login to third-party wiki

Yes, as you see I want use http://westeros.ir/wiki/api.php and defined apipath in westeros_family.py file like this:

def apipath(self, code):
               return '/wiki'

I wonder why I'm receiving this error. I never mentioned '/w' folder anywhere! Is there any way to fix this?

PS: Thanks for adding to wikiapary.

3dmahdi (talk)14:52, 3 July 2013

I'm afraid I don't know much about this. Looks like you got an answer from your post on Pywikipediabot page, though.

MarkAHershberger(talk)23:18, 4 July 2013

Yes, that was the solution. Problem was with tabs. Now my bot can login and edit pages. Thanks for your help.

3dmahdi (talk)20:12, 5 July 2013