def GetSelfLink(self):

    for a_link in self.link:
      if a_link.rel == 'self':
        return a_link
    return None
Find the first link with rel set to 'self'
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/webmastertools/__init__.py/LinkFinder.GetSelfLink