Hello,
I am trying to get an article of my mediawiki making a program in python. I want to get the article's content in XML format, but I haven't seen any API's function which returns this content, so I am trying to get the article parsing the HTML file but this is very cumbersome.
Does someone know any easier way to get this content?
Greetings, Pedro.
On Tue, 2007-10-16 at 13:08 +0200, Pedro Ortiz Garcia-Miguel wrote:
I am trying to get an article of my mediawiki making a program in python. I want to get the article's content in XML format, but I haven't seen any API's function which returns this content, so I am trying to get the article parsing the HTML file but this is very cumbersome.
Does someone know any easier way to get this content?
Download the SQL dump, which is already in XML format.
2007/10/16, David A. Desrosiers desrod@gnu-designs.com:
On Tue, 2007-10-16 at 13:08 +0200, Pedro Ortiz Garcia-Miguel wrote:
I am trying to get an article of my mediawiki making a program in python. I want to get the article's content in XML format, but I haven't seen any API's function which returns this content, so I am trying to get the article parsing the HTML file but this is very cumbersome.
Does someone know any easier way to get this content?
Download the SQL dump, which is already in XML format.
-- David A. Desrosiers desrod@gnu-designs.com setuid@gmail.com http://projects.plkr.org/ Skype...: 860-967-3820
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
And how can I do the same but getting the article from any other mediawiki?
Pedro Ortiz Garcia-Miguel escribió:
Hello,
I am trying to get an article of my mediawiki making a program in python. I want to get the article's content in XML format, but I haven't seen any API's function which returns this content, so I am trying to get the article parsing the HTML file but this is very cumbersome.
Does someone know any easier way to get this content?
Greetings, Pedro.
You can use Special:Export Or, using the api, rvprop=content
http://es.wikipedia.org/w/api.php?action=query&prop=revisions&meta=s...
mediawiki-l@lists.wikimedia.org