extract_filename_from_url (function)

fundamentals.download.extract_filename_from_url(log, url)[source][source]

get the filename from a URL.

Will return ‘untitled.html’, if no filename is found.

Key Arguments

  • url – the url to extract filename from

Returns:
  • filename – the filename

Usage

```python from fundamentals.download import extract_filename_from_url name = extract_filename_from_url(

) print name # OUT: Docstring.html ```