def id_from_url(url: str) ->int:
    """
    Parse the id from the URL

    :param url: url to get id from.
    :raises NotImplementedError: If getting id from this url is not supported.
    :return: integer id.
    """
    parts = url.split('/')
    if 'aanbod' in parts:
        id = parts[parts.index('aanbod') + 1]
    elif 'list_messages' in parts:
        id = parts[parts.index('list_messages') + 1]
    elif 'pricewatch' in parts:
        id = parts[parts.index('pricewatch') + 1]
    else:
        raise NotImplementedError(
            'Getting the id for url ({url}) is not yet implemented')
    return int(id)
