def parse_url_subdomains(url):
    """Parses site, area, and category from Craigslist query URL."""
    parsed_url = url.split("https://")[1].split(".")
    parsed_suburl = parsed_url[2].split("/")
    site = parsed_url[0]
    # `parsed_suburl` will have len == 5 if query has no area.
    # `parsed_suburl` will have len == 6 if query has area.
    if len(parsed_suburl) == 5:
        area = ""
        category = parsed_suburl[1]
    else:
        area = parsed_suburl[1]
        category = parsed_suburl[2]
    return site, area, category