def getFilename(url):
    """Attempts to get the filename from the URL"""
    components = url.split('/')
    fname = components[-1]
    if '.' in fname:
        return fname
    else:
        return None