Re: [Pywikipedia-l] How to read special pages?

2012-02-17 Thread Bináris
2012/2/17 Dr. Trigon dr.tri...@surfeu.ch Just to be up-to-date; Are you planning to include API things like: * action=parsetext= * action=expandtemplatestext= I think the script should contain every special page one day that is not realized in other scripts, and a list of related functions

Re: [Pywikipedia-l] How to read special pages?

2012-02-17 Thread Dr. Trigon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok done in r9902. May be you want to move them to your apispec.py or other place - this sould be done right now (because it will be very bad style latter, when it is used by other code already... ;) Another question I have; You are defining and

Re: [Pywikipedia-l] How to read special pages?

2012-02-16 Thread Dr. Trigon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Binaris! (Hello all!) Just to be up-to-date; Are you planning to include API things like: * action=parsetext= * action=expandtemplatestext= at all? If not I have some code that could be included into wikipedia.site if there is any interesst.

Re: [Pywikipedia-l] How to read special pages?

2012-02-02 Thread Bináris
2012/2/2 Russell Blau russb...@imapmail.org This capability was just added to the rewrite branch earlier this week. Russell, which script do you mean? I don't use rewrite but tried to find it, please help. -- Bináris ___ Pywikipedia-l mailing list

Re: [Pywikipedia-l] How to read special pages?

2012-02-02 Thread Russell Blau
Bináris wrote: 2012/2/2 Russell Blau russb...@imapmail.org This capability was just added to the rewrite branch earlier this week. Russell, which script do you mean? I don't use rewrite but tried to find it, please help. various methods were added to pywikibot/site.py to implement the

Re: [Pywikipedia-l] How to read special pages?

2012-02-02 Thread Bináris
2012/2/2 Russell Blau russb...@imapmail.org various methods were added to pywikibot/site.py to implement the methods already in trunk that depend on Special: pages; for example, Site().longpages() I reviewed these methods in wikipedia.py and a part of them uses API, while lot of them

Re: [Pywikipedia-l] How to read special pages?

2012-02-02 Thread Merlijn van Deen
On 2 February 2012 22:20, Bináris wikipo...@gmail.com wrote: various methods were added to pywikibot/site.py to implement the methods already in trunk that depend on Special: pages; for example, Site().longpages() I reviewed these methods in wikipedia.py and a part of them uses API, while

Re: [Pywikipedia-l] How to read special pages?

2012-02-02 Thread Bináris
2012/2/2 Merlijn van Deen valhall...@arctus.nl I reviewed these methods in wikipedia.py and a part of them uses API, while lot of them analyzes HTML source. Russell is talking about the rewrite branch, at http://svn.wikimedia.org/viewvc/pywikipedia/branches/rewrite/pywikibot/ . Yes, I

Re: [Pywikipedia-l] How to read special pages?

2012-01-31 Thread Nickanc Wikipedia
Thank you! :) 2012/1/31 Bináris wikipo...@gmail.com: This thread originates from September 2010. Since nobody wrote a library to handle special pages, and we say in Hungary Yourself, mister, if you have no servants, I began to write apispec.py that tries to give interfaces for special pages

Re: [Pywikipedia-l] How to read special pages?

2012-01-31 Thread Bináris
A sample output from the list of blocks expiring within 24 hours: Data for block #37919 Blocked user: Teszteszter (#147405) Admin: Bináris (#9541) Beginning in UTC: 2012-01-31 15:17:07 Expiry in UTC: 2012-02-01 01:17:07 Flags: nocreate, noemail,

Re: [Pywikipedia-l] How to read special pages?

2012-01-30 Thread Bináris
This thread originates from September 2010. Since nobody wrote a library to handle special pages, and we say in Hungary* Yourself, mister, if you have no servants*, I began to write apispec.py that tries to give interfaces for special pages through API whenever possible. Special:Blocklist is in

Re: [Pywikipedia-l] How to read special pages?

2010-09-08 Thread info
site generator for special:wantedcategories is implemented in r8504 Greetings xqt - Original Nachricht Von: Bináris wikipo...@gmail.com An: Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org Datum: 06.09.2010 11:27 Betreff: Re: [Pywikipedia-l] How to read special

Re: [Pywikipedia-l] How to read special pages?

2010-09-06 Thread Bináris
As far as I understand, the existing special page reader methods do the same, i. e. they read HTML. They belong to the Site object rather than to the Page. But there is a terrible regex in them which I had to copy and modify. I copied from the reader of another special page, but I could not make

[Pywikipedia-l] How to read special pages?

2010-09-05 Thread Bináris
I want to read a special page with Page.get(). The message is: File C:\Program Files\Pywikipedia\wikipedia.py, line 601, in get raise NoPage('%s is in the Special namespace!' % self.aslink()) pywikibot.exceptions.NoPage What is the solution? -- Bináris

Re: [Pywikipedia-l] How to read special pages?

2010-09-05 Thread Bináris
Well, I wrote it for myself during Starwars III. Not easily, but I learnt something. Nice conversation with myself. :-) I don't understand, why are there only some special pages in wikipedia.py while others are not. 2010/9/5 Bináris wikipo...@gmail.com I have read wikipedia.py, and I found that