Skip to content

Commit

Permalink
add auth to crawler for AVISO provider
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Jun 10, 2024
1 parent e54bac7 commit 04d8706
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions geospaas_harvesting/providers/aviso.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Code for searching MET NO data (https://thredds.met.no/thredds)"""
"""Code for searching AVISO data (https://tds.aviso.altimetry.fr/thredds)"""
from .base import Provider, TimeFilterMixin
from ..arguments import StringArgument
from ..crawlers import ThreddsCrawler


class AVISOProvider(TimeFilterMixin, Provider):
"""Provider for MET NO's Thredds"""
"""Provider for AVISO's Thredds"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.url = 'https://tds.aviso.altimetry.fr/thredds'
Expand All @@ -19,5 +19,7 @@ def _make_crawler(self, parameters):
'/'.join((self.url, parameters['directory'].lstrip('/'))),
time_range=(parameters['start_time'], parameters['end_time']),
include=parameters.get('include'),
max_threads=30
max_threads=30,
username=self.username,
password=self.password,
)

0 comments on commit 04d8706

Please sign in to comment.