valhallasw added a subscriber: valhallasw.
valhallasw added a comment.

> But if bots would know that langlinks are already stored at wikidata they do 
> not have to request source code of many local pages.


The langlinks that are stored on wikidata are available with a single request:

A) 
https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=berlin&normalize=&props=sitelinks

so would it not be easier to just solve this on the client side by comparing 
those links with the output from

B) https://en.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=Berlin

and taking the intersection A^B (=all langlinks from wikidata) + complement B\A 
(=langlinks not in wikidata) ?


TASK DETAIL
  https://phabricator.wikimedia.org/T43345

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw
Cc: valhallasw, Wikidata-bugs, jeblad, Legoktm, Nemo_bis, Anomie, Merl, Denny, 
Betacommand, Ricordisamoa, MZMcBride, Yurik, daniel, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to