Parse RSS Feeds from NHC

From Jay's Cafe' Wiki
Revision as of 04:22, 10 September 2019 by Jayctheriot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
  1. Download RSS
    wget -O <date_string>-<filename> <url>/<filename.xml>
  2. Parse looking for link to Forecast Discussion
    result=`grep -A 3 Discussion *.xml | grep link`
  3. Retrieve Discussion
    wget -O <filename> <url>
  4. Parse for Track and Strength Data
    html2text <filename> | grep -A 7 "INIT"
  5. Format file as needed for track data
  6. 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.