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 the errors property.

Attributes Summary

errors

A list of errors encountered during the download.

urls

A list of requested urls.

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) where filepath is a function for generating a filepath, url is the url to be downloaded and exception is the error raised during download.

urls#

A list of requested urls.

Methods Documentation

add_error(filename, url, exception)[source]#

Add an error to the results.

append(*, path, url)[source]#

S.append(value) – append value to the end of the sequence