Thanks Sam!<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 10:03 PM, Sam Korn <span dir="ltr"><<a href="mailto:smoddy@gmail.com">smoddy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, May 14, 2009 at 2:58 PM, Colonna Francois<br>
<<a href="mailto:colonna@lct.jussieu.fr">colonna@lct.jussieu.fr</a>> wrote:<br>
><br>
> Le jeudi 14 mai 2009 à 09:19 -0400, Brad Jorsch a écrit :<br>
>> On Wed, May 13, 2009 at 11:12:06AM +0200, Colonna Francois wrote:<br>
>> > Hello,<br>
>> > is it possible to get directly on disk the xml file produced by the api<br>
>> > command below<br>
>> ><br>
>> > api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=1000&format=xml<br>
>> ><br>
>> > using lynx -dump for example (I don't know how to do it) or an other<br>
>> > batch mode procedure ?<br>
>><br>
>> Use wget, curl, or any other program that downloads a URL and saves it<br>
>> to disk.<br>
><br>
> I tried wget<br>
><br>
><br>
> <a href="http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=100&format=xml" target="_blank">http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=100&format=xml</a><br>
><br>
> it results in :<br>
</div>[snip]<br>
<br>
The & character has a special meaning on the command-line. Try<br>
putting quotation marks around the url, so<br>
<br>
wget '<a href="http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=100&format=xml" target="_blank">http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=100&format=xml</a>'<br>
<br>
Sam<br>
<font color="#888888"><br>
--<br>
Sam<br>
PGP public key: <a href="http://en.wikipedia.org/wiki/User:Sam_Korn/public_key" target="_blank">http://en.wikipedia.org/wiki/User:Sam_Korn/public_key</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Mediawiki-api mailing list<br>
<a href="mailto:Mediawiki-api@lists.wikimedia.org">Mediawiki-api@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-api" target="_blank">https://lists.wikimedia.org/mailman/listinfo/mediawiki-api</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Rezuan Asrah<br>question = ( to ) ? be : ! be; -- Wm. Shakespeare<br><br><a href="http://elusi.blogspot.com">http://elusi.blogspot.com</a><br>