/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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()
URL: http://blackcodeseo.com/automatically-installing-wordpress/