def categorize_url(url_list):
    url_dict=defaultdict(list)
    category_pattern='https://apkpure.com/sitemaps/(.+)(-\d+)?.xml.gz'
    for i in url:
        path=urlparse(i).path
        category=re.match("/sitemaps/(\w+)(-\d+)?.xml.gz", path).group(1)
        if category not in url_dict:
            url_dict[category]=[i]
        else:
            url_dict[category].append(i)
    return url_dict