[Mediawiki-api] how to use api commands in batch mode ?

Rezuan Asrah rezuan7 at gmail.com
Thu May 14 14:06:22 UTC 2009


Thanks Sam!

On Thu, May 14, 2009 at 10:03 PM, Sam Korn <smoddy at gmail.com> wrote:

> On Thu, May 14, 2009 at 2:58 PM, Colonna Francois
> <colonna at lct.jussieu.fr> wrote:
> >
> > 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=allpages&gapnamespace=0&gaplimit=100&format=xml
> >
> > it results in :
> [snip]
>
> The & character has a special meaning on the command-line.  Try
> putting quotation marks around the url, so
>
> wget '
> http://localhost/~wiki/mediawiki/api.php?action=query&generator=allpages&gapnamespace=0&gaplimit=100&format=xml
> '
>
> Sam
>
> --
> Sam
> PGP public key: http://en.wikipedia.org/wiki/User:Sam_Korn/public_key
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>



-- 
Rezuan Asrah
question = ( to ) ? be : ! be; -- Wm. Shakespeare

http://elusi.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20090514/efa93803/attachment.htm 


More information about the Mediawiki-api mailing list