Posted By

matthewnovak on 10/26/08


Tagged

wordpress auto install


Versions (?)

Automatically Installing Wordpress Part 1


 / Published in: Python
 

URL: http://blackcodeseo.com/automatically-installing-wordpress/

  1. import urllib
  2.  
  3. # make sure you set WEBLOG_TITLE and ADMIN_EMAIL
  4. params = urllib.urlencode({'weblog_title' : WEBLOG_TITLE, 'admin_email' : ADMIN_EMAIL})
  5.  
  6. # install wordpress
  7. f = urllib.urlopen('http://MY_DOMAIN/wp-admin/install.php?step=2', params)
  8. data = f.read()
  9. f.close()

Report this snippet  

You need to login to post a comment.