maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration
http://python-wordpress-xmlrpc.rtfd.org
MIT License
380 stars 129 forks source link

Update base.py #156

Open thijs-hakkenberg opened 1 year ago

thijs-hakkenberg commented 1 year ago

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 commented 1 year ago

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)