@ Amir in the last track I said in some of pages! please import these pages with bot for fa.wiki you will see it doesn't work [[الگو:AT-1]] [[الگو:AT-2]] [[الگو:AT-3]] [[الگو:AT-6]] [[الگو:AT-8]] [[الگو:AT-9]] [[الگو:AU-ACT]] [[الگو:AU-NSW]] [[الگو:AU-NT]] [[الگو:AU-QLD]] [[الگو:AU-SA]] [[الگو:AU-TAS]] [[الگو:AU-VIC]]...
2013-03-12 08:31:54 PDT in Python Wikipedia ...
may be https://bugzilla.wikimedia.org/show_bug.cgi?id=45227 will helpful for solving underscores problems.
2013-03-11 03:14:06 PDT in Python Wikipedia ...
creatitem() has problem with some of page which have prefix like category, template, wikipedia ,... and it shows API error error:"Got an unknown error when putting data: session-failure" for example for "Category:United States federal law" it shows this error I made a loop to try it 5 times with 10 second sleep but it doesn't work. but MerlIwBot which is java base bot...
2013-03-11 03:01:32 PDT in Python Wikipedia ...
it doesn't work properly! and changes , inside English text http://fa.wikipedia.org/w/index.php?title=%D9%86%D9%88%DA%A9_%D9%BE%D9%87%D9%86&diff=9500145&oldid=9498600.
2013-03-01 04:12:29 PST in Python Wikipedia ...
Please add it to setitem :)
2013-02-28 02:31:25 PST in Python Wikipedia ...
@nobody : I said it works randomly! some times after 2 or 3 time repeating it works! as amir said may be it is wikidata's but in wikidata I didn't have problem with them!
2013-02-28 02:29:49 PST in Python Wikipedia ...
wikipedia.py for creation of some items shows session-failure error but if we run code many time for that name it will create!! i.e: ائل تپه سی my code was # -*- coding: utf-8 -*- import wikipedia site = wikipedia.getSite('fa') name =u"ائل تپه سی" page = wikipedia.Page(site, name) data = wikipedia.DataPage(page) try: items = data.get() except...
2013-02-27 14:29:24 PST in Python Wikipedia ...
thanks nu11zer0. we should also change wikipedia.py to accept more parameters for setitem()
2013-02-27 13:49:57 PST in Python Wikipedia ...
Yes in my opinion code should be like below (as you said in last comment) and before DataPage() library should load myData by itself without other lines! (minimal code) and this loading could be done in setitem() myPage = wikipedia.Page(wikipedia.getSite(), 'Helium') myData = wikipedia.DataPage(myPage) content = {...} myData.setitem('changing an item', content) # put it to the web.
2013-02-27 04:20:37 PST in Python Wikipedia ...
I done this edit by wikidata.py library and it supports one edition for adding many labels and langs in a item updating but it's item creation has bug so now I should use wikipedia.py for create and wikidata.py for updating! it is difficult because wikidata.py has it's own user_confing.py and settings :)
2013-02-27 03:54:33 PST in Python Wikipedia ...