python-wordpress-xmlrpc
python-wordpress-xmlrpc copied to clipboard
Update base.py
I received an error that the module collections did not have 'iterable'. in the last version of the code, indeed this was the case. Hopeful this may prevent import issues of others as well
Implementation which is now fixed for me:
def get_posts(site_url, username, password): wp = Client( url=site_url, username=username, password=password, blog_id=0, transport=None ) posts = wp.call( method=GetPosts() ) for post in posts: print(post.title)