Returns a unique link for an entry

def _get_entry_link(self, entry):
        """ Returns a unique link for an entry
        """
        entry_link = None
        for link in entry.link:
            if '/data/' not in link.href and '/lh/' not in link.href:
                entry_link = link.href
                break
        return entry_link or entry.link[0].href