Re: [Pywikipedia-l] Creating wikidata items

2013-02-26 Thread info
Hi Amir the point is there may be an existing data item without language link to fa-wiki and a bot is able to create a new repository item for fa-wiki without having any language links (or having it's own link cluster). Before a bot creates a data repository item we must be be sure that a rep

Re: [Pywikipedia-l] Creating wikidata items

2013-02-26 Thread Amir Ladsgroup
Dear xqt, is it ok? # -*- coding: utf-8 -*- import wikipedia site=wikipedia.getSite('fa', fam='wikipedia') listofarticles=[u"عماد خراسانی",u"کوری جهاز"] for name in listofarticles: page=wikipedia.Page(site,name) data=wikipedia.DataPage(page) try: items=data.get() except wi

[Pywikipedia-l] Creating wikidata items

2013-02-26 Thread info
Hi folks, Reza1615 as published a small code snippet to create items at data repository. Please use this sample with care becaus it does not test whether a data repository item already exists. It only test whether it exists for a given site page. This could also mean that a given site page as n