|
@@ -10,6 +10,9 @@ from wordpress_xmlrpc import Client
|
|
|
from wordpress_xmlrpc import WordPressPost, WordPressComment
|
|
|
from wordpress_xmlrpc.methods.posts import GetPost
|
|
|
|
|
|
+from config import *
|
|
|
+
|
|
|
+
|
|
|
|
|
|
# Access WP post
|
|
|
# How to detector if it is available???
|
|
@@ -17,8 +20,7 @@ from wordpress_xmlrpc.methods.posts import GetPost
|
|
|
|
|
|
# Use Wordpress account - not the mysql credentials
|
|
|
# Todo: use scopus later !!!
|
|
|
-wp = Client('http://localhost/~kopmann/ufo2/xmlrpc.php', 'ufo', '$ipepdv$')
|
|
|
-
|
|
|
+wp = Client(wp_api_url, wp_user, wp_password)
|
|
|
|
|
|
wpid = 1149
|
|
|
if len(sys.argv) > 1:
|