Re: convert wiki pages to xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings Karsten!

On Mon, 2011-01-10 at 18:12 -0800, Karsten Wade wrote:
> On Mon, Jan 10, 2011 at 05:15:19PM +0800, He Rui wrote:
> > Hi all,
> > 
> > How can I convert/export large amount of wiki pages to xml files? And
> > how to use the API:data formats[1]? 
> 
> One way is to use the 'python-mwlib' package.  Here is an overview of
> how the Fedora Docs Team does it:
> 
> https://fedoraproject.org/wiki/Converting_wiki_to_DocBook_XML#Converting_to_XML
> 

Yeah, I tried it today but have two big problems. First, pages like: 

https://fedoraproject.org/wiki/QA/TestCases/BootMethodsBootIso

can't be executed when I ran: 

#mw-render -c http://fedoraproject.org/w/ -w docbook
QA/TestCases/BootMethodsBootIso -o bootiso.xml

How come? Depends on the link name?

Second, nearly all the cases I want to convert use test case
template[1], such as:

https://fedoraproject.org/wiki/QA:Testcase_ibus_start

then if I run: 

#mw-render -c http://fedoraproject.org/w/ -w docbook
QA:Testcase_ibus_start -o bootiso.xml

I can't get any page content.


Is there any workaround for these? 

Many many thanks,
Hurry

[1] https://fedoraproject.org/wiki/Template:QA/Test_Case


> Regarding API:data formats, you can probably refer to standard
> Wikipedia articles on how to do that.  Specific questions on any
> differences that fedoraproject.org/wiki has can be discussed on the
> wiki discussion list:
> 
> http://lists.fedoraproject.org/mailman/listinfo/wiki

Thanks, I've asked it in another thread.
> 
> - Karsten
> -- 
> websites mailing list
> websites@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/websites

Cheers,
Hurry
-- 
Contacts

Hurry
FAS Name: Rhe 
Timezone: UTC+8
TEL: 86-010-62608141
IRC nick: rhe #fedora-qa #fedora-zh

-- 
websites mailing list
websites@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/websites


[Index of Archives]     [Fedora Users]     [Linux ARM]     [ARM Kernel]     [Older Fedora Users]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux