On Tue, Aug 14, 2012 at 5:48 PM, Fred Zimmerman <[email protected]> wrote:
> Hi,
> Hi,
>
> for an URL like
>
> http://en.wikipedia.org/w/api.php?action=parse&format=txt&page=Paraguay%20River&prop=text&mobileformat=html&noimages=
>
> I would like to remove the extraneous (array) info at the top
>
> Array ( [parse] => Array ( [title] => Paraguayan guaraní [revid] =>
> 504403853 [text] =>
>
> and the long appended text
>
> so that I am only receiving the mobile html with no images.
>
> Help!
>
The response is going to be wrapped in *some* format, be it XML, JSON,
PHP or something else, because it is structured. The API currently
doesn't offer a facility for getting just one property from the
structured response and outputting it raw.

Roan

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to