def parse_file_ext_from_url(url):
    parsed = urlparse.urlparse(url)
    last_path = parsed.path.split('/', 1)[-1]
    if '.' in last_path:
        extension = last_path.split('.')[-1].strip()
        if extension:
            return extension
    return None
dataset/ETHPy150Open openvenues/common_crawl/common_crawl/regex_url.py/parse_file_ext_from_url/original