+ 4

How do I get Info from a webpage?

For example, taking the latest tropical weather outlooks from the NHC website; how would you do that with HTML/JS?

17th Jul 2020, 5:05 PM
PresidentOfYes12
PresidentOfYes12 - avatar
2 Antworten
+ 2
https://www.nhc.noaa.gov/ has some RSS feeds which should be far better structured and useful for you than web scraping HTML. https://www.nhc.noaa.gov/aboutrss.shtml explains them. Weather outlook data is included in their RSS feeds. You could download, parse, and pull the information you want out of those RSS feeds in many languages. You could run JavaScript using nodejs or use Python, Java, c#. All these languages come with standard XML parsers so getting the information you're after shouldn't be hard.
17th Jul 2020, 5:57 PM
Josh Greig
Josh Greig - avatar
+ 2
Use their api https://api.weather.gov/points/{lat},{lon} Eg. New York City is https://api.weather.gov/points/40.7128,-74.006
17th Jul 2020, 5:44 PM
Calviղ
Calviղ - avatar