Skip to content

Instantly share code, notes, and snippets.

View agrouaze's full-sized avatar

Antoine Grouazel agrouaze

View GitHub Profile
@agrouaze
agrouaze / download_nc_files_from_ifremer.py
Created April 25, 2024 15:14
example of python script to download the files.
import os
import requests
import logging
def list_and_download_files(base_url, directory, download_dir):
# Make a request to the directory URL
url = base_url + directory
response = requests.get(url)
logging.info('response: %s',response)
if response.status_code == 200:
# Create download directory if it doesn't exist
@agrouaze
agrouaze / .bash
Created April 23, 2024 07:08
first test
echo 'hello'