Search code examples
pythonimgur

Imgur TagVote issue python


A beginner here, I am using the imgur python library to get tags related to an image. For this I am using the gallery_item_tags method as mentioned here.

However whenever i call the method it gives me an output as shown here.

I have followed the authorization procedure using the needed client id and client secret and i can run all methods not involving TagVotes array. How can i get the required information from this?


Solution

  • You're getting a list of TagVote instances. You probably want the name, you can access it like this:

    for tag in tags:
      print tag.name