def get_openlibrary_data(olid: str = "isbn/0140328726") -> dict:
    new_olid = olid.strip().strip("/")  # Remove leading/trailing whitespace & slashes
    if new_olid.count("/") != 1:
        raise ValueError(f"{olid} is not a valid Open Library olid")
    return requests.get(f"https://openlibrary.org/{new_olid}.json").json()