Skip to content

Conversation

@thijs-hakkenberg
Copy link

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

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant