def has_snapshot(html):
    """Given a BeautifulSoup instance containing the HTML of a search result webpage
    from archive.org, this method will search the HTML for an id='error' tag. If there
    is such a tag, that means there is no snapshot of the URL searched for. If there is
    no error tag, that means there is at least one snapshot of the URL searched for. This
    method returns True if there is a snapshot, and False if there is no snapshot."""
    #search for the id="error"
    error = html.find(id='error')
    #if there is id='error' in the HTML, we return false because there is no snapshot
    if error is not None:
        return False
    else:
        return True