python-wordpress-xmlrpc icon indicating copy to clipboard operation
python-wordpress-xmlrpc copied to clipboard

xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 5, column 0

Open MuhammedEminK opened this issue 3 years ago • 0 comments

from wordpress_xmlrpc import Client ,WordPressPost from wordpress_xmlrpc.methods.posts import EditPost, GetPost, GetPosts, NewPost from wordpress_xmlrpc.methods.users import GetUserInfo

wp = Client("https://tik*****************/xmlrpc.php","t**********","**********")

wp.call(GetPosts()) wp.call(GetUserInfo())

post = WordPressPost() t = "eklenti deneme" a = """[python file="a.py"]""" post.title = t post.content = a post.terms_names = { "post_tag": ["test","Firstpost"], "category": ["Introductions","Tests"] } sa = 1810 wp.call(EditPost(sa,post))

The code that worked 2 days ago is now giving an error, I couldn't find anywhere how to solve it. Can you help me?

MuhammedEminK avatar Jul 29 '21 15:07 MuhammedEminK