downloader.downloader module¶
-
downloader.downloader.head_request(url)[source]¶ Send HEAD request to given url.
Parameters: url (str) – URL of the internet resource. Returns: Dictionary with headers. Important headers: content-lengthandcontent-type.Return type: dict
-
downloader.downloader.download(url)[source]¶ Download resource at url.
Parameters: url (str) – URL of the internet resource. Returns: Content of the downloaded resource. Return type: str