Re: API retrieval of Blog labels / tags

GorseFox <[email protected]> Fri, 9 Mar 2018 01:09:53 -0800 (PST)
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
No I never found a satisfactory way to do this. I did, however, find a work 
around.
What I did was create a list of all the tags/labels... then go through, one 
by one, extracting all of the posts for each of the tags in which I had an 
interest. It was long-winded, but it worked.

Andy

On Sunday, 24 September 2017 07:38:39 UTC+1, Andy wrote:
>
> Hello, have you already foud out how to use thet blogger api documentation 
> ?
> I am having some problems with understanding and I would also like to use 
> that functions.
>
> Dne ponedeljek, 20. junij 2016 11.05.23 UTC+2 je oseba GorseFox napisala:
>>
>> I have been writing some Python code to retrieve historical blogger posts 
>> from my own.
>> I seem to be able to get the blog post title, the url, the id and so 
>> forth... but how do I get the labels/tags that are associated with the post.
>> I am using the Blogger API client libraries
>>
>> request = posts.get(blogId=blog['id'],postId=post['id'])
>> post_content = request.execute()
>> print('Author:  %s:' % post_content['author'])
>> print('Content: %s:' % post_content['content'])
>> print('Replies: %s:' % post_content['replies'])
>>
>>
>> The Blogger API documentation 
>> <https://developers.google.com/resources/api-libraries/documentation/blogger/v3/python/latest/blogger_v3.posts.html#get>
>>  references:
>>
>>  "labels": [ # The list of labels this Post was tagged with."A String",],
>>
>>
>> but a call with that seems to go unrecognised.
>>
>> Any advice or help?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.