def get_next_target(page):
    """
    Takes a page as input, searches for the first link on that page,
    returns that as the value of url and also returns the position
    at the end of the quote as the starting point for the next search.
    """
    start_link = page.find('<a href=')
    if start_link == -1:
        return None, 0
    start_quote = page.find('"', start_link)
    end_quote = page.find('"', start_quote + 1)
    url = page[start_quote + 1:end_quote]
    return url, end_quote