Parse RSS Feeds from NHC
From Jay's Cafe' Wiki
Revision as of 04:22, 10 September 2019 by Jayctheriot (talk | contribs)
RSS URLs from NOAA
# Atlantic Wallets https://www.nhc.noaa.gov/nhc_at1.xml https://www.nhc.noaa.gov/nhc_at2.xml https://www.nhc.noaa.gov/nhc_at3.xml https://www.nhc.noaa.gov/nhc_at4.xml https://www.nhc.noaa.gov/nhc_at5.xml # Eastern Pacific Wallets https://www.nhc.noaa.gov/nhc_ep1.xml https://www.nhc.noaa.gov/nhc_ep2.xml https://www.nhc.noaa.gov/nhc_ep3.xml https://www.nhc.noaa.gov/nhc_ep4.xml https://www.nhc.noaa.gov/nhc_ep5.xml # Central Pacific Wallets https://www.nhc.noaa.gov/nhc_cp1.xml https://www.nhc.noaa.gov/nhc_cp2.xml https://www.nhc.noaa.gov/nhc_cp3.xml https://www.nhc.noaa.gov/nhc_cp4.xml https://www.nhc.noaa.gov/nhc_cp5.xml
- Download RSS
wget -O <date_string>-<filename> <url>/<filename.xml>
- Parse looking for link to Forecast Discussion
result=`grep -A 3 Discussion *.xml | grep link`
- Retrieve Discussion
wget -O <filename> <url>
- Parse for Track and Strength Data
html2text <filename> | grep -A 7 "INIT"
- Format file as needed for track data
- Generate tracking map and email-post to hurricanes.jayscafe.net (combine multiple storms into one post?)
- Need to find a resource for South Pacific, North and South Indian Oceans.