This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wpadapter.py inserts posts from a csv file to a wordpress blog | |
import datetime , xmlrpclib , csv | |
# STEP 1 create a wp insert function | |
def insert_wp_post(title="Title was not passed !",content="Content was not passed !"): | |
wp_url = "http:// <INSERT YOUR WORDPRESS URL HERE >/xmlrpc.php" | |
wp_username = "wordpress username" | |
wp_password = "wordpress password" | |
wp_blogid = "" | |
postype="" |