Hello , Tim Starling told me that i can ask here to approve me for commit access, i am working always with python and as i am working in Persian community, my codes is about working on Persian Wikis you can see a summary here http://fa.wikinews.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Mjbmrbot#Robot_Tasks_In_This_Wiki and i would like to work on localization and some minor edits that would be helpful, here is example of my codes :
# -*- coding: utf-8 -*- import wikipedia, urllib, re, os, datetime, calendar from xml.dom import minidom from time import strftime
Lang="fa" Family="wikinews"
RR = (u'??????', u'?????', u'????', u'?????', u'??', u'????', u'?????', u'???', u'???????', u'?????', u'??????', u'??????') RR2 = (u'January', u'February', u'March', u'April', u'May', u'June', u'July', u'August', u'September', u'October', u'November', u'December') RRfr = (u'janvier', u'février', u'mars', u'avril', u'mai', u'juin', u'juillet', u'août', u'septembre', u'octobre', u'novembre', u'décembre') RRfr2 = (u'Janvier', u'Février', u'Mars', u'Avril', u'Mai', u'Juin', u'Juillet', u'Août', u'Septembre', u'Octobre', u'Novembre', u'Décembre') RR3 = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
MMM = int(strftime("%m")) YYY = strftime("%Y") YYY2 = strftime("%Y") YYY = YYY.replace(u'1', u'1') YYY = YYY.replace(u'2', u'2') YYY = YYY.replace(u'3', u'3') YYY = YYY.replace(u'4', u'4') YYY = YYY.replace(u'5', u'5') YYY = YYY.replace(u'6', u'6') YYY = YYY.replace(u'7', u'7') YYY = YYY.replace(u'8', u'8') YYY = YYY.replace(u'9', u'9') YYY = YYY.replace(u'0', u'0') site = wikipedia.getSite(Lang, Family) FF = "" for i in range(1, RR3[MMM-1] + 1): site = wikipedia.getSite(Lang, Family) DD = str(i) DD2 = str(i) DDfr = str(i) if (DDfr==u'1'): DDfr = u"1er" DDfr2 = str(i) if (len(DDfr2)==1): DDfr2 = u'0' + DDfr2 DD = DD.replace(u'1', u'1') DD = DD.replace(u'2', u'2') DD = DD.replace(u'3', u'3') DD = DD.replace(u'4', u'4') DD = DD.replace(u'5', u'5') DD = DD.replace(u'6', u'6') DD = DD.replace(u'7', u'7') DD = DD.replace(u'8', u'8') DD = DD.replace(u'9', u'9') DD = DD.replace(u'0', u'0') FF = FF + u"== [[/" + DD + u'|' + DD + u' ' + RR[MMM-1] + u"]] ==\n{{/" + DD + u'}}\n\n' pagename = (u'???:' + DD + u' ' + RR[MMM-1] + u' ' + YYY) page = wikipedia.Page(site, pagename) AA = (u'[[???:' + RR[MMM-1] + u' ' + YYY + u']]\n[[???:' + DD + u' ' + RR[MMM-1] + u']]\n\n[[en:Category:' + RR2[MMM-1] + u' ' + DD2 + u', ' + YYY2 + u']]\n[[fr:Catégorie:' + DDfr + u' ' + RRfr[MMM-1] + u' ' + YYY2 + u']]') CCC = (u'????: ????? ???????? ??? ' + RR[MMM-1] + u' ' + YYY) wikipedia.output(u"Loading %s..." % pagename) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(AA, comment=CCC, watchArticle = None, minorEdit = False)
pagename = (u'???:' + DD + u' ' + RR[MMM-1]) page = wikipedia.Page(site, pagename) AA = (u'{{' + RR[MMM-1] + u'}}\n{{?????????|{{????????}}}}\n{{??????????-???|' + DD2 + u' ' + RR2[MMM-1] + u'}}\n\n[[en:Category:' + RR2[MMM-1] + u' ' + DD2 + u']]\n[[fr:Catégorie:' + DDfr + u' ' + RRfr[MMM-1] + u']]') CCC = (u'????: ????? ??????? ??? ' + RR[MMM-1]) wikipedia.output(u"Loading %s..." % pagename) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(AA, comment=CCC, watchArticle = None, minorEdit = False)
pagename = (u'????????:' + YYY + u'/' + RR[MMM-1] + u'/' + DD) page = wikipedia.Page(site, pagename) AA = (u'<onlyinclude>\n<DynamicPageList>\ncategory=????????\ncategory=' + DD + u' ' + RR[MMM-1] + u' ' + YYY + u'\nsuppresserrors=true\nstablepages=only\n</DynamicPageList>\n</onlyinclude>\n\n[[en:Wikinews:' + YYY2 + u'/' + RR2[MMM-1] + u'/' + DD2 + u']]\n[[fr:Wikinews:' + YYY2 + u'/' + RRfr[MMM-1] + u'/' + DDfr2 + u']]') CCC = (u'????: ????? ???????? ??? ' + RR[MMM-1] + u' ' + YYY) wikipedia.output(u"Loading %s..." % pagename) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(AA, comment=CCC, watchArticle = None, minorEdit = False)
pagename = (u'????????:' + YYY + u'/' + RR[MMM-1]) page = wikipedia.Page(site, pagename) FF = FF + u'[[???:' + RR[MMM-1] + u' ' + YYY + ']]\n\n[[en:Wikinews:' + YYY2 + u'/' + RR2[MMM-1] + u']]\n[[fr:Wikinews:' + YYY2 + u'/' + RRfr[MMM-1] + ']]' CCC = (u'????: ????? ????? ????? ?? ??? ' + RR[MMM-1] + u' ' + YYY) wikipedia.output(u"Loading %s..." % pagename) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(FF, comment=CCC, watchArticle = None, minorEdit = False)
pagename = (u'???:' + RR[MMM-1] + u' ' + YYY) page = wikipedia.Page(site, pagename) AA = (u'[[???:' + RR[MMM-1] + u']]\n[[???:'+ YYY + u']]\n\n[[en:Category:' + RR2[MMM-1] + u' ' + YYY2 + u']]\n[[fr:Catégorie:' + RRfr2[MMM-1] + u' ' + YYY2 + u']]') CCC = (u'????: ????? ???? ??? ' + RR[MMM-1] + u' ' + YYY) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(AA, comment=CCC, watchArticle = None, minorEdit = False)
pagename = (u'???:' + YYY) page = wikipedia.Page(site, pagename) AA = (u'{{???????????|' + YYY2 + u'}}\n\n[[???:????? ?? ???? ?????]]\n\n[[en:Category:' + YYY2 + u']]\n[[fr:Catégorie:' + YYY2 + u']]') CCC = (u'????: ????? ???? ??? ' + YYY) try: text = page.get() except wikipedia.NoPage: print "Page doesn't exist, creating it ..." page.put(AA, comment=CCC, watchArticle = None, minorEdit = False)
This is a simple code that create date category pages and templates, my user name in wmf projects is Mjbmr and i have a bot with Mjbmrbot username that it have a global flag, I hope you accept my request, Regards -- Mjbmr
Hi MJB,
Op 7-2-2011 15:22, MJB schreef:
Hello , Tim Starling told me that i can ask here to approve me for commit access, i am working always with python and as i am working in Persian community, my codes is about working on Persian Wikis you can see a summary here http://fa.wikinews.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Mjbmrbot#Robot_Tasks_In_This_Wiki and i would like to work on localization and some minor edits that would be helpful, here is example of my codes :
<codeblock>
This is a simple code that create date category pages and templates, my user name in wmf projects is Mjbmr and i have a bot with Mjbmrbot username that it have a global flag, I hope you accept my request, Regards -- Mjbmr
Do you always name variables like that?
Maarten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
No, It just a simple and a test code
On 2011/02/08 12:07 ?.?, Maarten Dammers wrote:
Hi MJB,
Op 7-2-2011 15:22, MJB schreef:
Hello , Tim Starling told me that i can ask here to approve me for commit access, i am working always with python and as i am working in Persian community, my codes is about working on Persian Wikis you can see a summary here http://fa.wikinews.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Mjbmrbot#Robot_Tasks_In_This_Wiki and i would like to work on localization and some minor edits that would be helpful, here is example of my codes :
<codeblock>
This is a simple code that create date category pages and templates, my user name in wmf projects is Mjbmr and i have a bot with Mjbmrbot username that it have a global flag, I hope you accept my request, Regards -- Mjbmr
Do you always name variables like that?
Maarten
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hello,
I'm Interested having commit access for pywikipedia, my last request in this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-February/ archive, which no one finally answered me, I am active in the Persian community but as I am active in many wikis, some times I invite people to translate pywikipedia framework to their language and some times I make patch for pywikipedia like this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006768.htmland some one else will approve it http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006769.html , as I told you before I have bot which is using pywikipedia framework and I sent you some example of my written code which are using in wmf projects and another reason for getting this access is I would like to improve forgotten family files like this http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/families/uncyclopedia_family.py?view=markup (read header) which is making bad edits in their projects like this http://bg.oxypedia.net/index.php?diff=2882&oldid=1248&uselang=en for example I tested that, there are several outdated namspaces in that family file which I can fix them, per these statements I request commit access for pywikipedia, if it's possible please approve me.
Thank you.
On 20/09/11 19:01, Mjbmr wrote:
Hello,
I'm Interested having commit access for pywikipedia, my last request in this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-February/ archive, which no one finally answered me, I am active in the Persian community but as I am active in many wikis, some times I invite people to translate pywikipedia framework to their language and some times I make patch for pywikipedia like this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006768.htmland some one else will approve it http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006769.html , as I told you before I have bot which is using pywikipedia framework and I sent you some example of my written code which are using in wmf projects and another reason for getting this access is I would like to improve forgotten family files like this http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/families/uncyclopedia_family.py?view=markup (read header) which is making bad edits in their projects like this http://bg.oxypedia.net/index.php?diff=2882&oldid=1248&uselang=en for example I tested that, there are several outdated namspaces in that family file which I can fix them, per these statements I request commit access for pywikipedia, if it's possible please approve me.
Thank you.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I'd be happy seeing this person with commit access, I remember him submitting various... providing xqt is happy with him having access for this (I remember xqt applied these, so reviewed them as well..)
-- Lewis Cawte
Hello, Is there any script with pywikipedia to remove none exist images from pages? if there isn't, someone please commit this script which I attached to the mail, Thanks.
On 2011/09/20 09:31 ?.?, Mjbmr wrote:
Hello,
I'm Interested having commit access for pywikipedia, my last request in this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-February/ archive, which no one finally answered me, I am active in the Persian community but as I am active in many wikis, some times I invite people to translate pywikipedia framework to their language and some times I make patch for pywikipedia like this http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006768.htmland some one else will approve it http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-March/006769.html , as I told you before I have bot which is using pywikipedia framework and I sent you some example of my written code which are using in wmf projects and another reason for getting this access is I would like to improve forgotten family files like this http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/families/uncyclopedia_family.py?view=markup (read header) which is making bad edits in their projects like this http://bg.oxypedia.net/index.php?diff=2882&oldid=1248&uselang=en for example I tested that, there are several outdated namspaces in that family file which I can fix them, per these statements I request commit access for pywikipedia, if it's possible please approve me.
Thank you.
Hello Mjbmr,
On 27 October 2011 22:07, Mjbmr mjbmri@gmail.com wrote:
Hello, Is there any script with pywikipedia to remove none exist images from pages? if there isn't, someone please commit this script which I attached to the mail, Thanks.
Thank you for contributing your script. However, there already is a function in the framework you can use to remove images (wikipedia.Page.replaceImage), and the API queries also should be built somewhere in the framework, I think. The 'bot script' in general should only contain a high-level description, and no details on the exact underlying representation (how would this script work on non-api wikis? And what about if you would want to use a database layer?). Oh, and we already have code to retrieve categories and pages ;-)
If you want to, maybe you can rewrite it to take these points into account. If you don't have the time to do this, maybe one of the pwb developers will have time to do it for you.
Best, Merlijn
Is there anybody who uses tortoisesvn? Two weeks after the new release 1.7 was published there is a new version 1.7.1 which is recommend to update asap. A lot of bugs has been fixed.
Changelog: http://tortoisesvn.net/Changelog.txt Download: http://tortoisesvn.net/downloads.html
Greetings xqt
I've updated my local repository to 1.7.1 last week by console, just use "svn upgrade" to do it.
Looks like we don't need to do anything in online repository.
※ 引述《"info" info@gno.de》之郵件內容:
Is there anybody who uses tortoisesvn? Two weeks after the new release 1.7 was published there is a new version 1.7.1 which is recommend to update asap. A lot of bugs has been fixed.
I always keep my spirit minority.
I meant the local working copy if using tortoise at all under windows os
xqt
----- Original Nachricht ---- Von: "Alex S.H. Lin" alexsh@mail2000.com.tw An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 30.10.2011 10:13 Betreff: Re: [Pywikipedia-l] New Tortoise release
I've updated my local repository to 1.7.1 last week by console, just use "svn upgrade" to do it.
Looks like we don't need to do anything in online repository.
? ???"info" info@gno.de???????
Is there anybody who uses tortoisesvn? Two weeks after the new release 1.7
was published there is a new version 1.7.1 which is recommend to update asap. A lot of bugs has been fixed.
I always keep my spirit minority.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org