Results#
- class parfive.Results(*args, errors=None, urls=None)[source]#
Bases:
UserList
The results of a download from
parfive.Downloader.download
.This object contains the filenames of successful downloads as well, a list of all urls requested in the
urls
property and a list of any errors encountered in theerrors
property.Attributes Summary
Methods Summary
add_error
(filename, url, exception)Add an error to the results.
append
(*, path, url)S.append(value) -- append value to the end of the sequence
Attributes Documentation
- errors#
A list of errors encountered during the download.
The errors are represented as a tuple containing
(filepath, url, exception)
wherefilepath
is a function for generating a filepath,url
is the url to be downloaded andexception
is the error raised during download.
- urls#
A list of requested urls.
Methods Documentation