[BangPypers] How should I do it?

Noufal Ibrahim noufal at gmail.com
Fri Jan 15 09:47:16 CET 2010


On Fri, Jan 15, 2010 at 1:04 PM, Dhananjay Nene <dhananjay.nene at gmail.com>wrote:

> This seems to be an output of print_r of PHP. If you have a flexibility,
> try
> to have the PHP code output the data into a language neutral format (eg
> json, yaml, xml etc.) and then parse it in python using the appropriate
> parser. If not you may have to write a custom parser. I did google to find
> if one existed, but couldn't easily locate one.
>


There is
 http://www.php.net/manual/en/book.json.php for PHP and Python2.6 onwards
has json part of the stdlib.

If you don't have access to the webserver, you might be able to use the php
interpreter on your own machine to parse this into something more language
neutral


-- 
~noufal
http://nibrahim.net.in


More information about the BangPypers mailing list