downloader.structures.responses module¶
-
class
downloader.structures.responses.DownloadedFile[source]¶ Bases:
downloader.structures.responses.DownloadedFileResponse to
DownloadandProgressDownload.-
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.ProgressResponse 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.ExistsResponse to
CheckExistence.-
url¶ str – URL of the internet resource.
-
result¶ bool –
Trueif the file exists,Falseif not.
-
headers¶ dict – HTTP headers returned to this requests.
Create new instance of Exists(url, result, headers)
-