Hi,

There is a better way of doing this, yes. You can retrieve just the
tag entry for the tag you are interested in, which looks like this

http://picasaweb.google.com/data/entry/api/user/default/tag/${TAGNAME}

Note that this has to be done with authentication, which is why I used
default instead of the username.

Then you can see a <gphoto:weight> that indicate the frequency of the
tag. There currently is a bug where this element is omitted if the tag
occurs exactly once, however:

http://code.google.com/p/gdata-issues/issues/detail?id=735

Cheers,
-Jeff



On Sep 18, 10:02 pm, Sean R <[EMAIL PROTECTED]> wrote:
> I'm not sure if I'm perhaps missing something, but is there a way to,
> in one request, get the number of occurrences of a tag for a user's
> account?
>
> Right now, if I request a tag feed (ie 
> -http://picasaweb.google.com/data/feed/api/user/${USERNAME}?kind=tag )
> then I get back a list of the tags in the account.  If I want to know
> how frequently each of those tags shows up, I then have to issue a
> separate request for each tag to get the number of entries with that
> tag (for 
> example:http://picasaweb.google.com/data/feed/api/user/${USERNAME}?kind=photo&tag=${TAG}&max-results=1000
> ).
>
> Is there a simpler way to do this?  On large accounts this takes
> forever to complete - my app frequently winds up exceeding the
> AppEngine maximum execution deadline, which is pretty suboptimal.
>
> On a slightly related note, the PyDocs say specifically that
> GetTaggedPhotos returns all tags returned by the server by default
> (http://gdata-python-client.googlecode.com/svn/trunk/pydocs/
> gdata.photos.service.html ), but I find that I need to specify a high
> limit number in order to get back more than 100 results.  Is that
> intended?  It seems to go against what the docs say.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to