Gnumarcoo | 21 May 17:11
Picon

handleArgs

According with you, why this for doesn't work:

for arg in pywikibot.handleArgs():
    genFactory.handleArg(arg)

in my python script?

Error message is: "name 'genFactory' is not defined"

I've:

import wikipedia as pywikibot

surely it's a small detail that escapes me... but I cannot find it. :(

Tnx,
Marco
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
koltzenburg | 8 May 15:02
Favicon

how search for non-bot interlanguage link edits

hi all, 

I'm seek interlanguage link edits that were undertaken by users who are no bots, these users for 
interlanguage link edits would usually be active before bots come in to do their work

maybe it is a good path to look at the summaries of the first interwiki bot edits per entry and take what 
happened before that point in time?

if yes, it should be great if anyone on this list could run such a search for me,
am ready to provide details about what is needed,

thanks & cheers,
Claudia
koltzenburg <at> w4w.net
Maarten Dammers | 21 Apr 14:50
Picon

Pywikipedia at the Berlin_Hackathon_2012

Hi everyone,

Insix weeks (1-3 June 2012) it's time again for the annual Berlin 
Hackathon [1]. It would be nice to also work on Pywikipedia there. The 
following people who are active in Pywikipedia are attending the Hackathon:
* Merlijn van Deen (valhallasw)
* Siebrand Mazeland (siebrand)
* Maarten Dammers (multichill)
* Bináris ?
* xqt ?
* You?

It would be nice if more Pywikipedia developers or people who want to 
become Pywikipedia developers would come to the hackathon.

There are only 10 or so places left, so if you'd like to come, please 
register soon. Some financial subsidy is available- If you need to 
request financial assistance or help with visa or hotel, then please 
register by May 1st and mention it in the registration form.

Registration form: https://wmberlin.eventbrite.com/

Maarten en Merlijn
(your friendly list admins)

[1] https://www.mediawiki.org/wiki/Berlin_Hackathon_2012
Jenith | 20 Apr 05:37
Picon

Request to join in Pywikipediabot project

Hi,

I would like to join in Python Wikipedia Robot Framework project in Sourceforge.

Some of my contribution:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3509841&group_id=93107&func=browse.

Currently I have been doing Picasa batch upload automated script.

I kindly request to add me in this project

Regards,
Jenith

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Jenith | 18 Apr 05:52
Picon

Picasa batch upload script

Hi Merlijn van Deen

I wrote program for Picasa batch upload using Google Data API . It works the same way as other batch upload works.

I have uploaded couple of Google albums using this. Can you please update me to make it available in Pywikipedia.

 I will write-up the usage page in MediaWiki once you approve

Regards,
Jenith
 


_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Morten Wang | 17 Apr 17:17
Picon

rewrite or trunk?

I asked this question in another thread, and it might have been buried somehow:

What's the take on trunk vs rewrite/2.0?  When I started using PWB a
couple of years ago (or thereabouts), I got the impression that
rewrite was the preferred version to use. Should I consider switching
back?

Cheers,
Morten
Morten Wang | 13 Apr 21:16
Picon

Fwd: Re: Re: Recent changes, permission denied need patrol right

Sorry, didn't notice the reply just went to xqt, here's a forward to the list.

Cheers,
Morten

---------- Forwarded message ----------
From: Morten Wang <nettrom <at> gmail.com>
Date: 13 April 2012 14:15
Subject: Re: Re: Re: [Pywikipedia-l] Recent changes, permission denied
need patrol right
To: info <at> gno.de

I grabbed the latest trunk from SVN and wrote a variant of the test
script I linked to earlier, and then it works just fine.

What's the take on trunk vs 2.0?  When I started using PWB a couple of
years ago (or thereabouts), 2.0 was the preferred version. Should I
consider switching back?

Cheers,
Morten

On 13 April 2012 11:35,  <info <at> gno.de> wrote:
> Oh I see, its pwb 2.0. Have you ever tried to run your script with the trunk release?
>
> Regards
> xqt
>
>
> ----- Original Nachricht ----
> Von:     Morten Wang <nettrom <at> gmail.com>
> An:      info <at> gno.de
> Datum:   13.04.2012 17:02
> Betreff: Re: Re: [Pywikipedia-l] Recent changes, permission denied need patrol right
>
>> I am also confused by this bug.  Figured out a test-case that triggers
>> the error, code available from http://pastebin.com/1ES5Pxfc
>>
>> If I comment out line 31 so it doesn't request the patrolled flag, the
>> request succeeds.  I also noticed that if I do that and check the
>> userinfo sent back from the API for the third request, it says
>> username is "SuggestBot", which means it shouldn't fail?
>>
>>
>> Cheers,
>> Morten
>>
>> On 13 April 2012 03:53,  <info <at> gno.de> wrote:
>> > I still do not understand the relationship. interwiki.py operates on
>> different sites too without having these problems.
>> >
>> > Regards
>> > xqt
>> >
>> >
>> > ----- Original Nachricht ----
>> > Von:     Morten Wang <nettrom <at> gmail.com>
>> > An:      Pywikipedia discussion list <pywikipedia-l <at> lists.wikimedia.org>
>> > Datum:   12.04.2012 22:17
>> > Betreff: Re: [Pywikipedia-l] Recent changes,
>> >        permission denied need patrol right
>> >
>> >> I've finally found some more time to fiddle with this problem. The
>> >> problem appears to be related to the fact that I'm using one script
>> >> that grabs data from three different Wikipedias (English, Norwegian,
>> >> and Swedish) with three different accounts[1]. Doing them in order the
>> >> script correctly logs in to each one, and when it later returns to the
>> >> first one it seems to think it's logged in.  Looking at the cookie
>> >> info I see that the centralAuth info is correct for the Swedish
>> >> account, not for the English, and there are cookies for user ID and
>> >> username for each of the three langauges.  So if the script thinks
>> >> it's logged in to English Wikipedia and sends the request, the API
>> >> will correctly notice that the info isn't consistent and throw the
>> >> error.
>> >>
>> >> Is my reasoning correct here?  Is there something I can do on my end
>> >> to force a login every time, or should I instead write my scripts so
>> >> they run separately for each account?
>> >>
>> >>
>> >> Footnotes:
>> >> 1: Once upon a time it seemed like a great idea...
>> >> 2: Need to be logged in to read the patrolled flag, from what I've
>> >> been able to figure out.
>> >>
>> >> Cheers,
>> >> Morten
>> >>
>> >> _______________________________________________
>> >> Pywikipedia-l mailing list
>> >> Pywikipedia-l <at> lists.wikimedia.org
>> >> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>> >>
>>

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Thehelpfulone | 12 Apr 21:49
Picon

https:// site

Hi all,


I'm trying to use pywikipedia on a private wmf wiki, it can only be accessed by viewing it in https://. When I run login.py -all, I get

Traceback (most recent call last):
  File "login.py", line 436, in <module>
    main()
  File "login.py", line 414, in main
    if not forceLogin and site.loggedInAs(sysop = sysop):
  File "/home/thehelpfulone/pywikipedia/wikipedia.py", line 5102, in loggedInAs
    self._load(sysop = sysop)
  File "/home/thehelpfulone/pywikipedia/wikipedia.py", line 6053, in _load
    raise RuntimeError('%s' % data['error'])
RuntimeError: {u'info': u'You need read permission to use this module', u'code': u'readapidenied'}

How can I fix the bot to allow it to log in (and thus run scripts?). By private wiki, I mean a wiki that you have to login to if you want to read anything other than the Main Page.

Thanks for your help!
--
Thehelpfulone
English Wikipedia Administrator

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Bináris | 3 Apr 15:15
Picon

-simulate

2012/2/18 <drtrigon <at> svn.wikimedia.org>
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9909

Revision: 9909
Author:   drtrigon
Date:     2012-02-17 23:09:15 +0000 (Fri, 17 Feb 2012)
Log Message:
-----------
follow-up to r9905 '-debug' replaced with new '-simulate' that allows switching off write access

Trigon, this is great, thank you! I have just tried it and works fine and helps in testing a lot.

Several scripts use their own mechanism for that with "-dry" or "-test" or something; we should revise these if they are still neccessary or may be removed. (As far as I understand -simulate works with API query. What happens if somebody uses the bot without API?)

--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Bináris | 29 Mar 14:54
Picon

Hidden categories

Hi,

catlib.py tries to say if a category is hidden like this:
hidden = re.search('__HIDDENCAT__', text)

But many wikis have already templates for that. See the interwikis at http://en.wikipedia.org/wiki/Template:Hidden_category for Wikipedias. Shall we list these templates within catlib.py, or what is the process? Is that a similar task than handling disambig templates in solve_disambiguation.py?

--
Bináris

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Bináris | 27 Mar 20:21
Picon

File to keep namespaces

Hi, I am a bit confused now with namespaces. What is the relationship between wikipedia_family.py and family.py? Here is a request for kv namespaces: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3512044&group_id=93107
I have put it into wikipedia_family.py, is that correct?

--
Bináris

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Gmane