def extract_slug(url):
    """Extract `this-is-the-slug` given an url for the form `https://blog.kitware.com/this-is-the-slug/`
    or `https://blog.kitware.com/this-is-the-slug`
    """
    if url.endswith("/"):
        url = url[:-1]
    return url.split("/")[-1]