On 13.11.2008, at 15:56, Osipov wrote:
> On 13 нояб, 16:14, "Joel Nothman" <[EMAIL PROTECTED]>
> wrote:
>> cdb stands for "constant database", i.e. it cannot be updated.
>
> Fine, it makes mwlib on cdb nearly useless. Zip seems to be very slow.

What exactly do you want to achieve with mwlib? We don't plan to re- 
build a complete wiki with mwlib -- we only want to access MediaWiki  
wikis and process the contents.

The CDB of ZIP files produced by mwlib can be used for tasks like  
offline wiki databases, but they are by no means meant as full- 
fledged, updateable databases like the database MediaWiki uses itself.

> And I think only variant 2 (accessing an online wiki directly) is
> suitable for me. How to create an appropriate config file for it?

Actually, you don't need an config file at all for this: Just specify  
the base URL of a MediaWiki to the -c/--config parameter, that is, the  
URL up to (but not including) the index.php part. For example this is  
the base URL for the English Wikipedia:

    http://en.wikipedia.org/w/

(You can see the so called "script path" of a MediaWiki which is using  
"pretty URLs" w/out the index.php in the URL, by clicking on the edit  
link or the article history.)

A short example: This command renders a PDF containing only the  
Article Physics from the English Wikipedia (needs mwlib and mwlib.rl  
for the PDF rendering):

   mw-render -c http://en.wikipedia.org/w/ -w rl -o test.pdf Physics

-- Johannes Beigel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to