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.

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).

class downloader.structures.responses.Exists[source]

Bases: downloader.structures.responses.Exists

Response to CheckExistence.

url

str

URL of the internet resource.

result

bool

True if the file exists, False if not.

headers

dict

HTTP headers returned to this requests.