downloader.structures.requests module

class downloader.structures.requests.Download[source]

Bases: downloader.structures.requests.Download

Download data from url.

url

str – URL of the internet resource.

Returns:DownloadedFile.
Return type:obj

Create new instance of Download(url,)

class downloader.structures.requests.ProgressDownload[source]

Bases: downloader.structures.requests.ProgressDownload

Download data from url and report back the progress.

url

str – URL of the internet resource.

steps

int – Number of steps used to track progress.

Progress is reported using Progress structure.

Returns:DownloadedFile.
Return type:obj

Create new instance of ProgressDownload(url, steps)

class downloader.structures.requests.CheckExistence[source]

Bases: downloader.structures.requests.CheckExistence

Send HEAD request to given url and check it’s existence.

url

str – URL of the internet resource.

Returns:Exists.
Return type:obj

Create new instance of CheckExistence(url,)