Re: [Pywikipedia-l] out-of-date manuals

2014-12-14 Thread Bináris
/wiki/Wikidata:Creating_a_bot#Pywikibot is somewhat newer, but still duplicates MW.org. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris

Re: [Pywikipedia-l] Pybot on Wikia

2014-12-12 Thread Bináris
2014-12-12 14:24 GMT+01:00 John Mark Vandenberg jay...@gmail.com: Ugh. It is all about compat :/ Compat is nice and delicious. :-) I was proud to find some of my own contributions there, but the whole thing does not contain any new information compared to our own documentation, except the

Re: [Pywikipedia-l] Pywikobot and phabricator

2014-11-14 Thread Bináris
Thank you for the answers! As far as I see I am not alone with the wish to spend my time with developing Pywiki (which I didn't do since dropping SVN) instead of preparing for developing and finding out annoying technical details. 2014-11-14 20:12 GMT+01:00 Andre Klapper aklap...@wikimedia.org:

Re: [Pywikipedia-l] Pywikobot and phabricator

2014-11-14 Thread Bináris
account) I don't know what's wrong with this. Bináris: Can you explain more? I think it is really about thread IDs which may not remain the same if the mails come from another server. I don't want to create filters thread by thread by the content, so I have to accept the facts. Well, the sun

Re: [Pywikipedia-l] Pywikobot and phabricator

2014-11-13 Thread Bináris
___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman

Re: [Pywikipedia-l] [Pywikipedia-bugs] [Bug 70607] replace.py does not work

2014-09-09 Thread Bináris
? -- You are receiving this mail because: You are the assignee for the bug. ___ Pywikipedia-bugs mailing list pywikipedia-b...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs -- Bináris

Re: [Pywikipedia-l] Means to generate a list of pages with redlinks

2014-09-08 Thread Bináris
Please have a look at https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/piroskat-userallap.py Unfortunately, not all comments are in English, sorry for that. def redCategories shows how an HTML source can be downloaded and processed for red category links. (megíratlan szócikk) after the title

Re: [Pywikipedia-l] Means to generate a list of pages with redlinks

2014-09-08 Thread Bináris
Although working from HTML seems to be uncommon and strange for an API-based environment, in this special case it is easy and worth a try. 2014-09-08 9:13 GMT+02:00 Bináris wikipo...@gmail.com: Please have a look at https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/piroskat-userallap.py

Re: [Pywikipedia-l] Two issues

2014-07-14 Thread Bináris
The bot account itself is not enough until we get a centralized notice for each userpage wikiwide. The main wiki should be included. hu:user:binbot is enogh to contact, and an urlencoded username can be easily inserted into the URL bar of browser in place of any other userpage by a human operator.

Re: [Pywikipedia-l] Two issues

2014-07-14 Thread Bináris
Good idea! 2014-07-14 11:37 GMT+02:00 John Mark Vandenberg jay...@gmail.com: On Mon, Jul 14, 2014 at 6:59 PM, Bináris wikipo...@gmail.com wrote: The bot account itself is not enough until we get a centralized notice for each userpage wikiwide. The main wiki should be included

Re: [Pywikipedia-l] Two issues

2014-07-10 Thread Bináris
://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Two issues

2014-07-10 Thread Bináris
:34 PM, Bináris wikipo...@gmail.com wrote: I think e-mail address is something personal and sensitive and is out of the reach of CUs and nowhere in Wikipedia is compulsory. Additionally, Pywikibot may be used in various MW installations of which we don't know anything in advance. Thus not a very

Re: [Pywikipedia-l] Two issues

2014-07-10 Thread Bináris
an e-mail to wikitech-l Best On Fri, Jul 11, 2014 at 12:40 AM, Frances Hocutt frances.hoc...@gmail.com wrote: On Thu, Jul 10, 2014 at 12:36 PM, Jeremy Baron jer...@tuxmachine.com wrote: On Jul 10, 2014 3:30 PM, Bináris wikipo...@gmail.com wrote: I don't see anything like a compulsory

Re: [Pywikipedia-l] drop support for python 2.6

2014-06-15 Thread Bináris
2014-06-15 12:37 GMT+02:00 Maarten Dammers maar...@mdammers.nl: I was wondering, does the user-agent include the python version? If so, we could ask the wmf analytics team to do some logging for us. Currently doesn't, but it is a good idea to implement.

Re: [Pywikipedia-l] drop support for python 2.6

2014-06-14 Thread Bináris
/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] drop support for python 2.6

2014-06-14 Thread Bináris
2014-06-14 23:51 GMT+02:00 Amir Ladsgroup ladsgr...@gmail.com: I think you're looking for this: https://www.mediawiki.org/wiki/Manual:Pywikibot/Survey2012 Sure, thank you. That page was obviously created by me in old times when I was unemployed and spent all my time with Wikipedia, but now I

Re: [Pywikipedia-l] pep257 docstring style checker

2014-06-13 Thread Bináris
Is there a way/tool to automatize a part of this work: I mean Blank line missing between one-line summary and description Expected 1 blank line *before* class docstring, found 0 type errors -- this kind may be machine-corrected. Not the missing docstrings, of course.

Re: [Pywikipedia-l] mwparserfromhell

2014-06-12 Thread Bináris
. Thanks for interest, it incourages me to share them. :-) As soon as I'll publish them decently, I'll send you the reference off-list, then feeel free to do anything with them (to laugh, to use, to share). Alex 2014-06-12 6:12 GMT+02:00 Bináris wikipo...@gmail.com: I am very much

Re: [Pywikipedia-l] Deprecation of compat

2014-06-01 Thread Bináris
2014-06-01 21:57 GMT+02:00 Merlijn van Deen valhall...@arctus.nl: This was the trick used for the survey we had two years ago, on deprecating old python versions: https://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/wikipedia.py?r1=9971r2=9970pathrev=9971 Thank you for calling

Re: [Pywikipedia-l] Deprecation of compat

2014-06-01 Thread Bináris
For me, keep it as simple as possible is a nice approach. I just read other threads about outer dependencies... Original Pywikibot was simple to copy and transfer on a pendrive with my own settings and modifications and ready to use anywhere as it was with only a pure Python installed. I liked

Re: [Pywikipedia-l] ArchiveBot

2014-05-03 Thread Bináris
2014-05-04 0:41 GMT+02:00 Mpaa mpaa.w...@gmail.com: * The actual MiszaBots are neither functioning nor expected to become functional.* This may have several reasons, e.g. server configuration or server account problems, lack of following the changes of Pywikibot version controlling, or the

Re: [Pywikipedia-l] versionHistories

2014-04-05 Thread Bináris
Next stage. It becomes more and more horroristic. I downloaded the latest compat from nightlies and unpacked. It is one third in size than that of 11 January. After unpacking version.py says: c:\Pywikipediaversion.py syntax error: line 1, column 0 Serious import error; pywikibot not available -

Re: [Pywikipedia-l] versionHistories

2014-04-05 Thread Bináris
What kind of configuration this mess wants me? As far as I know trunk never needed any configuration except user files. Tell me only one reason not to be angry. 2014-04-05 8:39 GMT+02:00 Bináris wikipo...@gmail.com: Next stage. It becomes more and more horroristic. I downloaded the latest

Re: [Pywikipedia-l] versionHistories

2014-04-05 Thread Bináris
2014-04-05 10:49 GMT+02:00 i...@gno.de: Did you change the frameworks path with your update? No, I just unpacked it to the same directorí with Total Commander. Should I have changed the path, I would still have a working copy... ___ Pywikipedia-l

Re: [Pywikipedia-l] versionHistories

2014-04-05 Thread Bináris
2014-04-05 15:16 GMT+02:00 i...@gno.de: The monkey-patch for importing pywikibot directly instead of wikipedia was done in November 2012. It should run as expected. Do you have any Setting für PYWIKIBOT_DIR? I don't know about it. Should I have? I didn't have als for the prevoius version

[Pywikipedia-l] versionHistories

2014-04-04 Thread Bináris
print len(page.getVersionHistory(getAll=True, reverseOrder=True)) print len(page.fullVersionHistory(getAll=True, reverseOrder=True)) 3838 258 Where did I make a mistake? Framework is of 1 January, did something change since then concerning fullVersionHistory? -- Bináris

Re: [Pywikipedia-l] versionHistories

2014-04-04 Thread Bináris
The so called compat version. hu:user talk:Bináris 2014-04-05 1:03 GMT+02:00 Mpaa mpaa.w...@gmail.com: Some more info to check. Core or Compat? Which Site/Page? Mpaa On Fri, Apr 4, 2014 at 11:26 PM, Bináris wikipo...@gmail.com wrote: print len(page.getVersionHistory(getAll=True

Re: [Pywikipedia-l] versionHistories

2014-04-04 Thread Bináris
I tried an other approach: I loop with getVersionHistory() which gives me oldid, date and size which I need, and call getOldVersion() for each oldid. The sad experience is that the script becomes extremely slow. As the page under investigation is usually quite big (it's a long talk page) and the

Re: [Pywikipedia-l] versionHistories

2014-04-04 Thread Bináris
Some experiments, all under hu: in Wikipedia. A possible conclusion is that some API limit is broken at pages with long history while for short histories the results are identical. site = pywikibot.getSite() page = pywikibot.Page(site, what) print len(page.getVersionHistory(getAll=True,

[Pywikipedia-l] Version numbers

2014-01-15 Thread Bináris
. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Version numbers

2014-01-15 Thread Bináris
from github. Merlijn On 15 January 2014 12:38, Bináris wikipo...@gmail.com wrote: Is there a way to get human readable version numbers again, like in the SVN times? This is a small annoying thing that is really unimportant compared to other newborn problems. Earlier we had a decimal number

Re: [Pywikipedia-l] Anniversary.py has arrived

2014-01-15 Thread Bináris
Upgraded to v1.0. New features: Supports all year lookups besides round anniversaries. Has some sample wrappers and commandline parameters. Default behaviour changed: existing target pages will be skipped (primarily for sparing time, not for protecting data); overwrite must be

Re: [Pywikipedia-l] Framework for blocking/unblocking

2014-01-12 Thread Bináris
Once I began a library, you may find it in the compat branch of PWB as apispec.py. The purpose was to create an API-based library to the special pages. Currently there is nothing in it for blocking but for checking blocks there is. Feel free to continue if you want!

[Pywikipedia-l] Anniversary.py has arrived

2014-01-12 Thread Bináris
://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/anniversary.py/doc Sample product: https://hu.wikipedia.org/wiki/Szerkeszt%C5%91:BinBot/%C3%89vfordul%C3%B3pr%C3%B3ba/%274,_%279/01-14 It is not ready as the date must still be set in code (main()), but it works and I am working on it further. -- Bináris

Re: [Pywikipedia-l] Anniversary.py has arrived

2014-01-12 Thread Bináris
2014/1/12 Gerard Meijssen gerard.meijs...@gmail.com Hoi, Does it allow for an update in Wikidata? It just collects data from a Wikipedia and writes them on a given page. I am afraid I am too sleepy to understand your question. ___ Pywikipedia-l

Re: [Pywikipedia-l] Anniversary.py has arrived

2014-01-12 Thread Bináris
the same parameter name for birth date, the bot may be tought to recognize it from infoboxes. Then wi still have the question of reliability. Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo

Re: [Pywikipedia-l] Unknown command git

2014-01-11 Thread Bináris
Thank you! 2014/1/11 Mpaa mpaa.w...@gmail.com Hi. For you first question, I think it is because pywikibot/version.py wants to get your version from your git repository: See pywikibot/version.py: try: (tag, rev, date, hsh) = getversion_git() - it will try to run git, which

Re: [Pywikipedia-l] Unknown command git

2014-01-11 Thread Bináris
2014/1/11 i...@gno.de Binariz, I will send you a working release which I use an windows and svn when I am back at home thus weekend an I try to commit a working script a bit later after some improvements. Thank you in advance! P.s. 's' in Bináris sounds like 'sh' in English or short 'sch

[Pywikipedia-l] Licensing: CC vs. MIT

2014-01-11 Thread Bináris
scripts often have additionally a (C)(D)(E)(F)(G)(A)(H)(C) license developed by me which means nothing special but sounds well.) -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo

Re: [Pywikipedia-l] Unknown command git

2014-01-11 Thread Bináris
2014/1/11 John phoenixoverr...@gmail.com I will have to agree with Bináris, Ive hacked my local checkout to avoid the recent fuckups that have been added. I basically killed the whole externals import process and several other things. Could you please create a howto? It could be placed under

Re: [Pywikipedia-l] Licensing: CC vs. MIT

2014-01-11 Thread Bináris
2014/1/11 Gerard Meijssen gerard.meijs...@gmail.com Hoi, Given that you are the copyright holder, you can make your work available under any license you like. But I cannot withdraw CC once the script is published in Wikipedia. Is there any conflict between these? Or is MIT better for the

[Pywikipedia-l] Bugzilla threads

2014-01-11 Thread Bináris
Hi, Bugzilla sends e-mails with new in subject when a bugreport is created, and the later mails without it. That means, threads are dissolved in my mailbox, and it is hard to keep them together. Can we somehow make Bugzilla to keep threads integrated? -- Bináris

Re: [Pywikipedia-l] Bugzilla threads

2014-01-11 Thread Bináris
. Merlijn On 12 January 2014 00:55, Bináris wikipo...@gmail.com wrote: Hi, Bugzilla sends e-mails with new in subject when a bugreport is created, and the later mails without it. That means, threads are dissolved in my mailbox, and it is hard to keep them together. Can we somehow make Bugzilla

[Pywikipedia-l] pywikibot.extract_templates_and_params

2014-01-11 Thread Bináris
Whoever wrote this function is a big hero! I am just very glad with it and thanks a lot! -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Submission about PWB

2014-01-08 Thread Bináris
I didn't know that there wasn't any submission in the previous years. :-) https://wikimania2012.wikimedia.org/wiki/Submissions/Efficient_and_flexible_text_manipulation,_spelling_correction_and_page_collections_with_Pywikibot https://meta.wikimedia.org/wiki/User:Bin%C3%A1ris#Wikimania_2012 Go on,

Re: [Pywikipedia-l] Google Code-In and a little problem

2013-11-02 Thread Bináris
2013/11/2 Amir Ladsgroup ladsgr...@gmail.com But there is a problem per Google rules. I can't be a mentor because I'm Iranian (and I can't be a mentor or participant in GSoC as well) You really do here a great job, thank you for all your contribution, and I am very sad to hear that Google is

Re: [Pywikipedia-l] Google Code-in: are you in?

2013-11-01 Thread Bináris
2013/10/28 Amir Ladsgroup ladsgr...@gmail.com IMO, the first and the second are really important. I'm looking forward to knowing others' opinion about this :) Absolutely right! ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] Cleaning up a spammed wiki

2013-10-30 Thread Bináris
and at least one link * Display title, a chunk of text and the link(s) * Offer to delete the page. A few years I asked about finding pages with one editor and received some good suggestions (but ended up using AbuseFilter instead). Bináris suggested an editor list and requiring that len

Re: [Pywikipedia-l] [Pywikipedia-bugs] [Bug 55689] Replace.py errors

2013-10-14 Thread Bináris
That's when a trunk user develops a script. :-) -save was invented by me, but I never used rewrite/core, and nobody felt like porting this feature to core. 2013/10/14 bugzilla-dae...@wikimedia.org https://bugzilla.wikimedia.org/show_bug.cgi?id=55689 --- Comment #3 from xqt i...@gno.de ---

Re: [Pywikipedia-l] [Pywikipedia-bugs] [Bug 55689] Replace.py errors

2013-10-14 Thread Bináris
/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Damned git

2013-10-07 Thread Bináris
/mailman/listinfo/pywikipedia-l -- Amir ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l

Re: [Pywikipedia-l] Damned git

2013-10-01 Thread Bináris
2013/10/1 Jan Dudík jan.du...@gmail.com I still don't understand, why was abandoned SVN and is there some git instead. It is as simple as follows: - SVN was perfect for Pywikibot community, but not for Mediawiki developers. They have much more complex processes that are not served well

Re: [Pywikipedia-l] Damned git

2013-10-01 Thread Bináris
2013/10/2 Amir Ladsgroup ladsgr...@gmail.com because high proportion of them are running (or should be running) in Labs. I'm not saying we need to abandon supporting windows. This concerns only automated bots. Many of us use Pywikibot interactively.

Re: [Pywikipedia-l] Renumbering a wikitable

2013-09-29 Thread Bináris
. Alex 2013/9/28 Bináris wikipo...@gmail.com Unfortunately, tables can't use # symbols for numbering, therefore people use constant numbers. Do we have any tool for handling that? I mean I want to insert a new 6th row after 5th and renumber the rest of the table. -- Bináris

Re: [Pywikipedia-l] Mailing lists

2013-09-24 Thread Bináris
2013/9/23 Maarten Dammers maar...@mdammers.nl * pywikipedia-announce – Only two messages this year (one spam, the other one to say sorry.) no last year We could use this more, but we need to have better criteria what to post there Huge support! People can set different filters in their

Re: [Pywikipedia-l] Cruft in compat

2013-08-31 Thread Bináris
2013/8/24 John phoenixoverr...@gmail.com Another point that is really frustrating is the logging system that complains about not having a logger defined if you run any custom scripts. So this is the reason! I didn't understand why I suddenly got those strange messages. I have a dream: someday

Re: [Pywikipedia-l] Name of the project

2013-08-30 Thread Bináris
Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] BeautifulSoup

2013-08-20 Thread Bináris
2013/8/20 Alex Brollo alex.bro...@gmail.com Thanks Maarten, so BS is one more module that I don't need. Really I use pywikipedia in a personal, exotic way - running only some basic scripts, an approach similar to wikitools. This is an important point. Now I found the real words for this

Re: [Pywikipedia-l] BeautifulSoup

2013-08-19 Thread Bináris
2013/8/19 Amir Ladsgroup ladsgr...@gmail.com Please keep in mind compatibility is one of the most important issues of PWB Maxi support for this thought. Thank you. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

Re: [Pywikipedia-l] BeautifulSoup

2013-08-19 Thread Bináris
2013/8/19 Dr. Trigon dr.tri...@surfeu.ch -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There is a very long message in before that now there will be some additional code installed. And then you get asked whether you want to do this or not. So I do not understand... (if there is a message

Re: [Pywikipedia-l] python styling (pep8/pyflakes)

2013-07-29 Thread Bináris
. :-) An example for long lines: URL in comment where the problem or solution is explained. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] [Rewrite] Cannot download http://gl.wiktionary.org/wiki/̰̳̰̰̽̿͂

2013-07-28 Thread Bináris
@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Please check -search

2013-07-27 Thread Bináris
2013/7/27 Amir Ladsgroup ladsgr...@gmail.com It's not better to run it this way? replace.py something otherthing -search:thing -ns:0 Well, it seems to work, but what is the reason that without explicite ns it finds everything except main? I wanted to chekk every namespace in one run for

[Pywikipedia-l] Gitt migration and nightlies

2013-07-24 Thread Bináris
Hi, for those unit radius users as we say in Hungary the end users, who don't want to learn git and don't want to contribute to the framework, will the nightlies be available in the same way after 26th? -- Bináris ___ Pywikipedia-l mailing list

Re: [Pywikipedia-l] Additional parameter in a replace function

2013-07-22 Thread Bináris
This sounds very promising, I will try it! -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Patch.exe, what sort of message is this?

2013-07-21 Thread Bináris
feedback DrTrigon On 09.07.2013 00:07, Bináris wrote: Things go worse and worse in the last days. First SVN errors, then change of textlib.py killed my script, and the newest, when running replace.py: WARNING: Download package patch.exe from http://downloads.sourceforge.net/project

Re: [Pywikipedia-l] Patch.exe, what sort of message is this?

2013-07-21 Thread Bináris
2013/7/21 Bináris wikipo...@gmail.com Next time it would be nice and friendly to leave people use the core in piece peace who are not interested in these externals. Sorry for that. ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org

[Pywikipedia-l] Additional parameter in a replace function

2013-07-21 Thread Bináris
) Here I stopped. How could I pass additional optional parameters? -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Patch.exe, what sort of message is this?

2013-07-08 Thread Bináris
should I download it? Why did my bot stop, when it worked normally a few days ago? What did I harm to the world? -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Script halted, textlib.py?

2013-07-05 Thread Bináris
) File /usr/lib/python2.7/re.py, line 244, in _compile raise error, v # invalid expression sre_constants.error: multiple repeat -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman

Re: [Pywikipedia-l] Trunk or Rewrite

2013-06-21 Thread Bináris
I think trunk is perfect as far as it satisfies your needs. There is no force to use rewrite. We have no statistics on users but I think for some reason that trunk is more widely used. Cheers, a happy trunk user -- Bináris ___ Pywikipedia-l mailing

Re: [Pywikipedia-l] replacing based on two regexes not near each other

2013-05-02 Thread Bináris
Try this first in replacements: ur'(?m)^== *([a-zA-Z ]+) *==\n+ etc. m for multiline (sometimes ?s works instead, I just use it without understanding why), and space* in case there are spaces between == marks. -- Bináris ___ Pywikipedia-l mailing list

Re: [Pywikipedia-l] Using a true MediaWiki parser (mwparserfromhell) instead of textlib methods

2013-04-25 Thread Bináris
Sounds interesting. What are your news for trunk users? -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] [Wikidata-l] New exception needed: score

2013-04-24 Thread Bináris
An: WikiMedia Mailing Lists Betreff: Re: [Pywikipedia-l] [Wikidata-l] New exception needed: score I'm guessing this was intended for the Pywikipedia-l list? :) -- Legoktm On Wed, Apr 24, 2013 at 1:38 AM, Bináris wikipo...@gmail.com wrote: Hi, score blahblah /score or score foo bar ... /score

Re: [Pywikipedia-l] Stop supporting non-API wikis

2013-04-21 Thread Bináris
Can we solve everything through API? I have a script that I wrote a few years ago, and I had to analyze HTML code to distunguish red and blue links on a page because there was no API function for that. -- Bináris ___ Pywikipedia-l mailing list

Re: [Pywikipedia-l] Archivebot

2013-04-05 Thread Bináris
Ceck the date format recognition in the code. I think that is not internationalized, so wont't work with Serbic date format without some transformation. 2013/4/6 Bojan Kalkan boki...@gmail.com On 4/5/2013 7:38 PM, Bináris wrote: You have two problems. One of them is written exactly

Re: [Pywikipedia-l] User-fixes folder

2013-03-16 Thread Bináris
of contents for scripts and fixes? I had the same problem, but try a different approach. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Table of contents for scripts and fixes

2013-03-13 Thread Bináris
://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes_and_functions_HOWTO -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Advanced use of replace.py/fixes.py

2013-02-24 Thread Bináris
%C3%A1ris#Wikimania_2012 for link and sample pages. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Advanced use of replace.py/fixes.py

2013-02-24 Thread Bináris
2013/2/24 Maarten Dammers maar...@mdammers.nl Why not make a pdf and upload it to Commons like everyone else[1]? :-) Perhaps because I don't like PDF and I don't like Commons, and this seemed a simple way. :-) -- Bináris ___ Pywikipedia-l mailing

[Pywikipedia-l] HELP! Bot stopped on toolserver

2013-02-17 Thread Bináris
, in module class Family(family.WikimediaFamily): AttributeError: 'module' object has no attribute 'WikimediaFamily' -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia

Re: [Pywikipedia-l] HELP! Bot stopped on toolserver

2013-02-17 Thread Bináris
It seems to be solved: as I modified fixes.py and svn update was not prepared to handle conflicts, it partially updated the framework. The interesting thing is that after deleting fixes.py it updated externals only, nothing in core, however bot started. -- Bináris

Re: [Pywikipedia-l] LDAP Authentication fails

2013-02-13 Thread Bináris
__**_ 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 -- Bináris

Re: [Pywikipedia-l] Coordinates

2013-01-18 Thread Bináris
@lists.wikimedia.**org Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/pywikipedia-lhttps://lists.wikimedia.org/mailman/listinfo/pywikipedia-l -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https

Re: [Pywikipedia-l] Wikidata has arrived, please update interwiki bots

2013-01-15 Thread Bináris
Thank you, xqt! 2013/1/15 i...@gno.de Hi Bináris, I made a change some files in r10923 to r10927 to prevent bots editing on wikis where wikidata is transcluded. This is not a full wikidata support yet but it prevents them from restore the language links again. Regards - Original

[Pywikipedia-l] Wikidata has arrived, please update interwiki bots

2013-01-14 Thread Bináris
will be Hebrew and Italian in a few weeks. They will be followed by English if tests are successful, then the others. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Overmagnified pictures

2013-01-02 Thread Bináris
think JPG is the main subject, GIFs are perhaps less involved and SVG is of course problemless. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Thank you for the bad joke :-(

2012-12-31 Thread Bináris
2012/12/31 Maarten Dammers maar...@mdammers.nl I ran into that too some time ago while debugging (do an edit, revert it and try again). Not sure when this was added but you have my support to remove it (with fire!). Thanks. I am still waiting for an opinion from xqt or Merlijn. -- Bináris

Re: [Pywikipedia-l] Thank you for the bad joke :-(

2012-12-31 Thread Bináris
Another problem vith this solution: this time the bot stopped after reverting *another* bot's edit. The other bot is also mine and it has a similar but longer name, so its name contains the name of the first bot. -- Bináris ___ Pywikipedia-l mailing

Re: [Pywikipedia-l] Thank you for the bad joke :-(

2012-12-31 Thread Bináris
careful (but the error was really not easy to understand). Cheers and happy new year -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Re: [Pywikipedia-l] Thank you for the bad joke :-(

2012-12-31 Thread Bináris
manipulate wikipedia.py. The trouble is that it will ignore the nobots template, too and thus spreads a bad custom. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

[Pywikipedia-l] Thank you for the bad joke :-(

2012-12-30 Thread Bináris
Hi, I worked a lot on a script that created a page under my bot's user page, finally after tests I renamed ithttp://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Elavult_m%C3%A1svitasablonokdiff=12816525oldid=12815108to project namespace. At the next run the bot worked 8 minutes (hard to wait

Re: [Pywikipedia-l] svn migration

2012-12-30 Thread Bináris
...?! ;)) Tell them that Santa Claus has taken the previous one to North Pole because his deers need it. They will understand! -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo

[Pywikipedia-l] New approach to disambiguation pages

2012-12-27 Thread Bináris
/66030: If you know any bot writers that are dealing with disambiguation pages, I would love to know more about what their needs are specifically. Perhaps an API could be added to the extension if it would be useful. -- Bináris ___ Pywikipedia-l mailing

Re: [Pywikipedia-l] Cosmetic changes and flagged revs

2012-12-27 Thread Bináris
(see the two difflinks in my first mail). So we would like bots to make cosmetic changes only on sighted pages even if cc is on. Otherwise cc may easily be prohibited in huwiki soon. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l

Re: [Pywikipedia-l] New approach to disambiguation pages

2012-12-27 Thread Bináris
2012/12/27 i...@gno.de pwb uses MediaWiki:Disambiguationspage and a dict in the family file since there are some sites where MediaWiki:Disambiguationspage is not valid. I'll update the mw message step by step next time. Do you think this new marking of the disamb pages may do things easier

Re: [Pywikipedia-l] svn migration

2012-12-26 Thread Bináris
I don't know git and gerrit and can't compare the possibilities. All I would like that if we have to move someone write a step-by-step manual for newbies. -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https

[Pywikipedia-l] Daylight saving

2012-12-22 Thread Bináris
Hi folks, is there a piece of code in pywiki that determines easily if the current time zone is summer or winter time? (Last Sunday of March, 3 o'clock -- last Sunday of October, 2 o'clock) -- Bináris ___ Pywikipedia-l mailing list Pywikipedia-l

Re: [Pywikipedia-l] Wikidata

2012-11-11 Thread Bináris
2012/10/20 i...@gno.de The following is a small sample just for reading a wikidata entry: trunk version: import wikipedia as wp s = wp.getSite('wikidata', 'wikidata') p = wp.Page(s, 'Q321') data = eval(p.get()) # evaluation is needed for transform text into dictionary This does not work

Re: [Pywikipedia-l] Wikidata

2012-11-11 Thread Bináris
the discussion here: https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10615 On Mon, Nov 12, 2012 at 1:59 AM, Bináris wikipo...@gmail.com wrote: 2012/10/20 i...@gno.de The following is a small sample just for reading a wikidata entry: trunk version: import wikipedia as wp s

  1   2   3   4   >