示例#1
0
 def download(self, **kwargs):
     url = kwargs.get('url', self.defurl)
     url = url.format(year=2017, month=5, day=14)
     kwargs['url'] = url
     if not 'filename' in kwargs:
         kwargs['filename'] = 'rad24h20170515'
     return Generator.download(self, **kwargs)
示例#2
0
 def download(self,**kwargs):
     if not 'filename' in kwargs:
         # need unique filename for incremental downloads
         url = kwargs.get('url','')
         filename = 'neerslaggeg_000.zip'
         if url != '':
             parts = urlparse.urlparse(url)
             filename = os.path.basename(os.path.basename(parts[2]))
         kwargs['filename'] = filename
     return Generator.download(self,**kwargs)
示例#3
0
 def download(self, **kwargs):
     if not 'filename' in kwargs:
         # need unique filename for incremental downloads
         url = kwargs.get('url', '')
         filename = 'neerslaggeg_000.zip'
         if url != '':
             parts = urlparse.urlparse(url)
             filename = os.path.basename(os.path.basename(parts[2]))
         kwargs['filename'] = filename
     return Generator.download(self, **kwargs)