Difference between revisions of "Parse RSS Feeds from NHC"

From Jay's Cafe' Wiki
(Created page with " RSS URLs from NOAA <pre> # 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.noa...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 21: Line 21:
https://www.nhc.noaa.gov/nhc_cp5.xml
https://www.nhc.noaa.gov/nhc_cp5.xml
</pre>
</pre>
# Download RSS <pre>wget -O <date_string>-<filename> <url>/<filename.xml></pre>
# Parse looking for link to Forecast Discussion <pre>result=`grep -A 3 Discussion *.xml | grep link`</pre>
# Retrieve Discussion <pre>wget -O <filename> <url></pre>
# Parse for Track and Strength Data <pre>html2text <filename> | grep -A 7 "INIT"</pre>
# 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.

Latest revision as of 05:22, 10 September 2019

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.