Blogger (Python) API: How do I retrieve a post by post ID?
Posted
by larsks
on Stack Overflow
See other posts from Stack Overflow
or by larsks
Published on 2010-01-28T03:29:24Z
Indexed on
2010/03/17
0:51 UTC
Read the original article
Hit count: 466
Having previously obtained a post ID from a call to gdata.blogger.client.add_post()
...
post = client.add_post(...)
post_id = post.get_post_id()
...how do I use that post id to retrieve the post in the future? I thought maybe gdata.blogger.client.Query
would be the way to go, but this doesn't support post id as a query term. The example code distributed with the Python gdata
module doesn't have an example of this use case, and after poking around gdata.blogger.client.*
for a while I'm not making much progress.
I could obviously iterate through all the posts in the blog until find the one with the corresponding id, but that would be a terrible, terrible idea.
© Stack Overflow or respective owner