We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For instance http://tdicamps.wikia.com/wiki/File:Llojdsjjlkjd.png: it's a file without associated file description history. Might be a botched import or half-deletion.
This is what we get in the API:
>>> import wikitools >>> title = 'File:Llojdsjjlkjd.png' >>> site = wikitools.wiki.Wiki('http://tdicamps.wikia.com/api.php') >>> pparams = { ... 'action': 'query', ... 'titles': title, ... 'prop': 'revisions', ... 'rvlimit': 'max', ... 'rvprop': 'ids|timestamp|user|userid|size|sha1|contentmodel|comment|content' ... } >>> prequest = wikitools.api.APIRequest(site, pparams) >>> results = prequest.queryGen() >>> results.next() {u'query': {u'pages': {u'40381': {u'ns': 6, u'pageid': 40381, u'title': u'File:Llojdsjjlkjd.png'}}}, u'limits': {u'revisions': 50}, u'warnings': {u'revisions': {u'*': u"Unrecognized value for parameter 'rvprop': contentmodel"}}}
The text was updated successfully, but these errors were encountered:
Raise and catch PageMissingError when revisions API result is incomplete
d76b4b4
#317
Ok, seems to be handled now.
Sorry, something went wrong.
No branches or pull requests
For instance http://tdicamps.wikia.com/wiki/File:Llojdsjjlkjd.png: it's a file without associated file description history. Might be a botched import or half-deletion.
This is what we get in the API:
The text was updated successfully, but these errors were encountered: