wget_interface#
- ioapps.wget_interface.get_weblist(url, path, matchstr=None, remove_webfile=True, ext=None)[source]#
DESCRIPTION:
This function collects a list of files beneath the specified URL.
- Parameters:
- url: str
A Python string specifying the path to the internet (world-wide web; WWW) file to be retrieved.
- path: str
A Python string specifying the local path to which to write the retrieved file.
- Returns:
- weblist: List
A Python list containing the files beneath the specified URL.
- Raises:
- WgetInterfaceError:
raised if an Exception is encountered; the respective error message accompanys the message string passed to the WgetInterfaceError class.
- Return type:
List
- ioapps.wget_interface.get_webfile(url, path, ignore_missing=False)[source]#
DESCRIPTION:
This function collects the specified URL path using the Python wget package.
- Parameters:
- url: str
A Python string specifying the path to the internet (world-wide web; WWW) file to be retrieved.
- path: str
A Python string specifying the local path to which to write the retrieved file.
- Raises:
- WgetInterfaceError:
raised if an Exception related to a missing URL path is encountered.