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

Update base.py

Open thijs-hakkenberg opened this issue 1 year ago • 1 comments

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

thijs-hakkenberg avatar Sep 05 '23 23:09 thijs-hakkenberg

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)

thijs-hakkenberg avatar Sep 05 '23 23:09 thijs-hakkenberg