Le jeudi 14 mai 2009 à 09:19 -0400, Brad Jorsch a écrit :
On Wed, May 13, 2009 at 11:12:06AM +0200, Colonna
Francois wrote:
Hello,
is it possible to get directly on disk the xml file produced by the api
command below
api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=1000&format=xml
using lynx -dump for example (I don't know how to do it) or an other
batch mode procedure ?
Use wget, curl, or any other program that downloads a URL and saves it
to disk.
I tried wget
http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpage…
it results in :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MediaWiki API Result</title>
</head>
<body>
<br/>
<small>
You are looking at the HTML representation of the XML format.<br/>
HTML is good for debugging, but probably is not suitable for your
application.<br/>
See <a
href='http://www.mediawiki.org/wiki/API'>complete
documentation</a>, or
<a href='/~wiki/mediawiki/api.php'>API help</a> for more information.
</small>
<pre>
<span style="color:blue;"><?xml
version="1.0"?></span>
<span style="color:blue;"><api /></span>
</pre>
</body>
</html>
<!-- Served in 0.184 secs. -->
What did I miss ?
Thanks
Francois Colonna