Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created October 21, 2011 21:07
Show Gist options
  • Save timbroder/1304977 to your computer and use it in GitHub Desktop.
Save timbroder/1304977 to your computer and use it in GitHub Desktop.
#get the total number of posts for this feed
def get_total(query):
#query for no posts
query.max_results = '0'
query.start_index = '1'
#get back entryless feed
feed = blogger_service.Get(query.ToUri())
return int(feed.total_results.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment