Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
def subject():
    return DownloadManager()
Exemplo n.º 3
0
 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())