Topic on Manual talk:Pywikibot/Archive 3

Category:NG:Dev.Team_games

2
For Each element In group ... Next (talkcontribs)

Hi. I found that

   site = pywikibot.Site("en")
   page = pywikibot.Page(site, "Category:NG:Dev.Team_games")
   print(page.text)

works well, but

   site = pywikibot.Site("en")
   page = pywikibot.Page(site, "NG:Dev.Team_games", 14)
   print(page.text)

raises an error:

   NoUsernameError: Failed OAuth authentication for wikipedia:ng: The authorization headers in your request are for a user that does not exist here

I guess pywikibot treated the title as a interwiki. So how to make it parses namespace id (i.e. 14) first? Thanks.

(version 9.6.0)

Xqt (talkcontribs)
Reply to "Category:NG:Dev.Team_games"