def get_clippings_from_book(book_title, parsed_clippings, clipping_type="all"):
    """
    args:
        book_title: a string of the title of a book
        parsed_clippings: a list of dictionaries, ie the output of get_clippings()
        clipping_type: Optional: None or "highlight" or "note"
    """
    clippings = []
    for clipping in parsed_clippings:
        if clipping_type == "all":
            if clipping["book_title"] == book_title:
                clippings.append(clipping)
        else:
            if clipping["book_title"] == book_title and clipping["clipping_type"] == clipping_type:
                clippings.append(clipping)
    return clippings