Created
October 21, 2011 21:07
-
-
Save timbroder/1304977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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