def _extension_from_url(self, url):
        split = urlsplit(url)
        base, ext = os.path.splitext(split.path)
        return ext
Get the filename extension from a file's full URL
dataset/ETHPy150Open openelections/openelections-core/openelex/us/ia/datasource.py/Datasource._extension_from_url