https://bugzilla.wikimedia.org/show_bug.cgi?id=60381
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|Return of the |Page with empty title |AttributeError: 'Page' |raises "AttributeError: |object has no attribute |'Page' object has no |'_isredir' |attribute '_isredir'" on | |.get() Ever confirmed|0 |1
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl ---
page = pywikibot.Page(site)
I think this should raise an exception, as it creates a Page object without title:
page
Page()
On the other hand, it's equivalent to
page = pywikibot.Page(site, '')
which should be the main page.
In any case, the correct way to do what you want is ]
page = pywikibot.Page(site, "Cat") page.get()