call php function from python

Tim Roberts timr at
Fri Apr 1 09:19:12 CEST 2011

CrabbyPete <pete.douma at> wrote:
>I have a python script that automatically loads wordpress, up to the
>point that it asks for the admin password.
>that is a php function call
>function wp_install( $blog_title, $user_name, $user_email, $public,
>$deprecated = '', $user_password = '' )
>Is there a way to call this function from python?

Are you running this script on the web server, or are you invoking this
over a socket using something like urllib?

If you are running remotely, then PHP does not exist.  All you have are
HTTP requests.  You need to make yourself look exactly like a human being
at a browser.  Fortunately, that's not too hard.
Tim Roberts, timr at
Providenza & Boekelheide, Inc.

More information about the Python-list mailing list