def get_category_id(url_category):
    """ Get the category id from the url category """

    category_part = url_category.split('/')[-2]
    category_id = int(category_part.split('_')[-1]) -1
    return category_id