Hi everyone,
Today I published and documented two scripts to mass add claims using the rewrite branch: * claimit.py: A script to mass add Wikidata claims to a lot of items based on pages on Wikipedia [1] * harvest_template.py: A script to mass add Wikidata claims based on information harvested from Wikipedia templates. [2] Both are still a bit rough, but now it's possible to add claims on Wikidata without writing a single line of code. Just run these bots from the commandline.
I implemented it in rewrite because the I like the implementation of Wikidata more than in trunk. It would be nice if trunk could just have the same objects and interface as rewrite. Any opinions of this?
Maarten
[1] https://www.mediawiki.org/wiki/Manual:Pywikipediabot/claimit.py [2] https://www.mediawiki.org/wiki/Manual:Pywikipediabot/harvest_template.py
It looks good, but only works for [[links]], not for strings :-(
JAnD 2013/5/9 Maarten Dammers maarten@mdammers.nl:
Hi everyone,
Today I published and documented two scripts to mass add claims using the rewrite branch:
- claimit.py: A script to mass add Wikidata claims to a lot of items based
on pages on Wikipedia [1]
- harvest_template.py: A script to mass add Wikidata claims based on
information harvested from Wikipedia templates. [2] Both are still a bit rough, but now it's possible to add claims on Wikidata without writing a single line of code. Just run these bots from the commandline.
I implemented it in rewrite because the I like the implementation of Wikidata more than in trunk. It would be nice if trunk could just have the same objects and interface as rewrite. Any opinions of this?
Maarten
[1] https://www.mediawiki.org/wiki/Manual:Pywikipediabot/claimit.py [2] https://www.mediawiki.org/wiki/Manual:Pywikipediabot/harvest_template.py
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I think we should do this even for upcoming data types (date, number) in the Hackathon, together
I'll do that for the trunk branch :)
On Sat, May 11, 2013 at 7:38 PM, Maarten Dammers maarten@mdammers.nlwrote:
Hi Jan,
Op 10-5-2013 9:38, Jan Dudík schreef:
It looks good,
but only works for [[links]], not for strings :-(
You're welcome to expand it to support more data types! :-)
Maarten
______________________________**_________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.**org Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/pywikipedia-lhttps://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Sorry, I am not able to change scripts in that way - I am only user, not developer ;-)
I meant - there are some infoboxes, which have | foo = bar but in artice is it presented as
Foo: [[bar]]
(example: [[cs:šablona:Infobox okres]])
JAnD 2013/5/11 Maarten Dammers maarten@mdammers.nl:
Hi Jan,
Op 10-5-2013 9:38, Jan Dudík schreef:
It looks good, but only works for [[links]], not for strings :-(
You're welcome to expand it to support more data types! :-)
Maarten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I made harvest_template.py compatible with trunk branch
Best
On 5/13/13, Jan Dudík jan.dudik@gmail.com wrote:
Sorry, I am not able to change scripts in that way - I am only user, not developer ;-)
I meant - there are some infoboxes, which have | foo = bar but in artice is it presented as
Foo: [[bar]]
(example: [[cs:šablona:Infobox okres]])
JAnD 2013/5/11 Maarten Dammers maarten@mdammers.nl:
Hi Jan,
Op 10-5-2013 9:38, Jan Dudík schreef:
It looks good, but only works for [[links]], not for strings :-(
You're welcome to expand it to support more data types! :-)
Maarten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
--
Ing. Jan Dudík
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l