Bugs item #3612209, was opened at 2013-04-29 08:30
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3612209&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Luca Rabinelli (beta16)
Assigned to: Nobody/Anonymous (nobody)
Summary: WikiData: error for non-main namespace item
Initial Comment:
Hi! Following the istructions in [[:mw:Manual:Pywikipediabot/Wikidata]], I try this simple program:
import pywikibot
site = pywikibot.getSite('en', 'wikipedia')
repo = site.data_repository()
page = pywikibot.Page(site, "Wikipedia:Unchi Bassi")
data = pywikibot.DataPage(page)
dictionary = data.get()
But the system return this error:
pywikibot.exceptions.NoSuchSite: Language wikidata does not exist in family wikipedia
Version:
Pywikipedia [http] trunk/pywikipedia (r11483, 2013/04/28, 17:04:21, OUTDATED)
Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Amir (amird)
Date: 2013-05-01 01:11
Message:
instructions said you can use one of two ways I'll correct that and I'll
make a more clear documentation
----------------------------------------------------------------------
Comment By: Luca Rabinelli (beta16)
Date: 2013-04-29 10:56
Message:
You're right. But this is only a very simple example which follows strictly
the instructions to reproduce the error.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-29 09:16
Message:
You did it in a very bad way you simply must use:
page = pywikibot.Page(site, "Wikipedia:Unchi Bassi")
data = pywikibot.DataPage(page)
data.get()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3612209&group_…