/ Published in: Python
URL: http://blackcodeseo.com/automatically-installing-wordpress/
Expand |
Embed | Plain Text
import urllib # make sure you set WEBLOG_TITLE and ADMIN_EMAIL params = urllib.urlencode({'weblog_title' : WEBLOG_TITLE, 'admin_email' : ADMIN_EMAIL}) # install wordpress f = urllib.urlopen('http://MY_DOMAIN/wp-admin/install.php?step=2', params) data = f.read() f.close()
You need to login to post a comment.
