#!/bin/bash

echo -e 'Content-Type: text/plain\r'
echo -e '\r'

wget -O - "http://marine.meteofrance.com/marine/accueil?MARINE_PORTLET.path=marinecotebulletin/COTE_CORSE" 2> /dev/null \
	| grep 'forecastBlock.*forecastTabs'  \
	| sed -e 's/^.*bulletinText">//' -e 's#</div>.*$##'  \
		-e 's/<br[^>]*>/|/g'  \
	| tr '|' '\n'

