def download(self, dest_dir): """ Fetch the URL of the latest NSPL CSV and download it. """ url = self.get_file_link()['href'] dl_mgr = DownloadManager( destination_dir=dest_dir, downloader=HttpDownloader(url), caching_strategy=self._caching_strategy()) return dl_mgr.download(url=url)
def subject(): return DownloadManager()
def download(self, dest_dir): dl_mgr = DownloadManager( destination_dir=dest_dir, downloader=self.http_dl, caching_strategy=self._caching_strategy()) return dl_mgr.download(url=self._authoritative_url())