def page_books_url(soup):
    """
    Extract the books and their urls for a page
    :param soup: page soup
    :return: dictionary of title of books and their url for the given page (soup)
    """
    reponse = {}
    livre = soup.find("h3")
    test = True
    while test:
        lien = livre.find("a").get("href")[8:]
        if livre.find("a").get("title") in reponse:
            title = livre.find("a").get("title") + "bis"
        else:
            title = livre.find("a").get("title")
        reponse[title] = "http://books.toscrape.com/catalogue" + lien
        test = livre.find_next("h3") is not None
        livre = livre.find_next("h3")
    return reponse