[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pywikipediabot-users
Subject:    [Pywikipedia-l] Changing claims via PWB
From:       Amir Ladsgroup <ladsgroup () gmail ! com>
Date:       2013-03-16 3:24:10
Message-ID: CA+ttme3UXvv1grQhk060W=ViJnVEeFdUGMS9_x=yUhRdswuXoQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
I made commits r11209-11212 for making easier to change claims via API
you can see the manual here:
http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Wikidata#Changing_or_creating_claims.2Fstatements
you simply can call and change properties and give them values

I tested it on two categories and it worked (
http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot/Dexbot_2)

I haven't work on errors yet (for example if new and old values are same
the code returns error instead of simply not saving the change like
mediawiki) but if there is any bugs, tell me


Cheers
-- 
Amir

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div>Hello,<br></div>I made commits r11209-11212 for making \
easier to change claims via API<br></div>you can see the manual here:<br><a \
href="http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Wikidata#Changing_or_creatin \
g_claims.2Fstatements">http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Wikidata#Changing_or_creating_claims.2Fstatements</a><br>


</div>you simply can call and change properties and give them values<br \
clear="all"><div><div><div><div><br></div><div>I tested it on two categories and it \
worked (<a href="http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot/De \
xbot_2">http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot/Dexbot_2</a>)<br>


<br></div><div>I haven&#39;t work on errors yet (for example if new and old values \
are same the code returns error instead of simply not saving the change like \
mediawiki) but if there is any bugs, tell me<br><br><br></div>

<div>Cheers</div><div>-- <br>Amir<br><br>
</div></div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic