def METHOD_NAME(self, item):
    """Get title and url from result."""
    title = item.get(self.title_tag, '').replace(' ', '.')
    attempt_list = [
        lambda: item.get('torrent_magneturi'),
        lambda: item.enclosures[0].href,
        lambda: item.get('link')
    ]
    url = None
    for cur_attempt in attempt_list:
        try:
            url = cur_attempt()
        except Exception:
            continue
        if title and url:
            break
    return title, url