Anomie moved this task from Unsorted to Non-core-API stuff on the MediaWiki-API board. Anomie added a comment.
> @Dvorapa added a project: #MediaWiki-API <https://phabricator.wikimedia.org/tag/mediawiki-api/>. What exactly do you think is a bug in the API here? Please supply the queries, the current output, and what you think is wrong with it. In T130911#4984702 <https://phabricator.wikimedia.org/T130911#4984702>, @Xqt wrote: > and again: > > C:\pwb\GIT\core>pwb.py redirect.py do -simulate -lang:pa > Retrieving double redirect special page... > Retrieving 25 pages from wikipedia:pa. > [...] > ERROR: RuntimeError: getredirtarget: No 'redirects' found for page ਫਾਟਕ:ਇਤਿਹਾਸ. > I note that https://pa.wikipedia.org/w/api.php?action=query&generator=querypage&gqppage=DoubleRedirects&gqplimit=max&prop=info&formatversion=2 currently returns, in part, { "pageid": 68990, "ns": 0, "title": "ਫਾਟਕ:ਇਤਿਹਾਸ", "contentmodel": "wikitext", "pagelanguage": "pa", "pagelanguagehtmlcode": "pa", "pagelanguagedir": "ltr", "touched": "2016-03-25T19:42:10Z", "lastrevid": 291775, "length": 89, "redirect": true, "new": true }, which is one of those situations where there's a page that's unreachable by title, as "ਫਾਟਕ:ਇਤਿਹਾਸ" should be in namespace 100. See https://pa.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&pageids=68990|73388&formatversion=2: "query": { "pages": [ { "pageid": 68990, "ns": 0, "title": "ਫਾਟਕ:ਇਤਿਹਾਸ", "revisions": [ { "contentformat": "text/x-wiki", "contentmodel": "wikitext", "content": "#ਰੀਡਿਰੈਕਟ [[ਵਿਕੀਪੀਡੀਆ:ਫਾਟਕ:ਇਤਿਹਾਸ]]" } ] }, { "pageid": 73388, "ns": 100, "title": "ਫਾਟਕ:ਇਤਿਹਾਸ", "revisions": [ { "contentformat": "text/x-wiki", "contentmodel": "wikitext", "content": "" } ] } ] } TASK DETAIL https://phabricator.wikimedia.org/T130911 WORKBOARD https://phabricator.wikimedia.org/project/board/200/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Anomie Cc: Anomie, Dvorapa, jayvdb, gerritbot, Aklapper, Xqt, pywikibot-bugs-list, CucyNoiD, NebulousIris, Wenyi, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Baloch007, Darkminds3113, Bsandipan, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Tbscho, MayS, Sethakill, Lewizho99, Mdupont, JJMC89, Maathavan, dg711, Avicennasis, mys_721tx, Dalba, Masti, Alchimista, Jackmcbarn, Rxy, Krenair, Legoktm
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs