def continue_crawl(search_history, target_url, max_steps = 25):
    """
    Determines whether or not we should keep crawling
        search_history: is a list of strings which are urls of Wikipedia
                        articles. The last item in the list is the most
                        recently found url.
        target_url: is a string, the url of the article that the search
                    should stop at if it is found.
    """
    if search_history[-1] == target_url:
        print("Congratulations! You reached the target Url. The article chain was {} article(s) long.".format(len(search_history)))
        return False
    elif len(search_history) > max_steps:
        print("The article chain has exceeded 25 articles so we are giving up.")
        return False
    elif search_history[-1] in search_history[:-1]:
        print("Uh oh! You got caught in an endless loop of articles.")
        return False
    else:
        return True