Difference between revisions of "Parse RSS Feeds from NHC"
From Jay's Cafe' Wiki
Jayctheriot (talk | contribs) m |
Jayctheriot (talk | contribs) m |
||
(One intermediate revision 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 | # 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> | # Parse looking for link to Forecast Discussion <pre>result=`grep -A 3 Discussion *.xml | grep link`</pre> | ||
# Retrieve Discussion | # Retrieve Discussion <pre>wget -O <filename> <url></pre> | ||
# Parse for Track and Strength Data | # Parse for Track and Strength Data <pre>html2text <filename> | grep -A 7 "INIT"</pre> | ||
# Format file as needed for track data | # Format file as needed for track data | ||
# Generate tracking map and email-post to hurricanes.jayscafe.net (combine multiple storms into one post?) | # 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. | * Need to find a resource for South Pacific, North and South Indian Oceans. |
Latest revision as of 04: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
- 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.