downloader.structures.responses module

class downloader.structures.responses.DownloadedFile[source]

Bases: downloader.structures.responses.DownloadedFile

Response to Download and ProgressDownload.

url

str – URL of the internet resource.

b64_data

str – Downloaded data encoded as base64 string.

Create new instance of DownloadedFile(url, b64_data)

class downloader.structures.responses.Progress[source]

Bases: downloader.structures.responses.Progress

Response to ProgressDownload.

url

str – URL of the internet resource.

step

int – Number of current step.

downloaded

int – How many bytes was downloaded to this step.

content_length

int – How big is the whole file (in bytes).

Create new instance of Progress(url, step, downloaded, content_length)

class downloader.structures.responses.Exists[source]

Bases: downloader.structures.responses.Exists

Response to CheckExistence.

url

str – URL of the internet resource.

result

boolTrue if the file exists, False if not.

headers

dict – HTTP headers returned to this requests.

Create new instance of Exists(url, result, headers)