Open
Description
I want to use wptools but I get stuck after getting a page.
Here I am using thr Ghandi disambiguation page in Dutch.
page = wptools.page('Gandhi', wiki='nl.wikiquote.org').get_query()
This gives an error:
LookupError: https://nl.wikiquote.org/w/api.php action=query&exintro&formatversion=2&inprop=url|watchers&list=random&pithumbsize=240&pllimit=500&ppprop=disambiguation|wikibase_item&prop=extracts|info|links|pageassessments|pageimages|pageprops|pageterms|redirects&redirects&rdlimit=500&rnlimit=1&rnnamespace=0&titles=Gandhi
I am following examples from this website https://pypi.org/project/wptools/0.2.0/ in order to set it up for finding links on a disambiguation page. I am using Ghandi here just to try it out.
When I use the normal Ghandi page it also gives an error when wanting to get anything out of the WPToolsPage object.
page = wptools.page('Mahatma Gandhi', wiki='nl.wikiquote.org').get_query()
page.image('page')['url']
It gives this error:
AttributeError: 'WPToolsPage' object has no attribute 'image'
The warning automatically shown does show that it retrieves information but I am unable to access it.
Metadata
Metadata
Assignees
Labels
No labels