Я хочу разобрать Yahoo! Weather API и я хочу сохранить эти атрибуты элемента в переменных для дальнейшего использования:
<yweather:location city="Zebulon" region="NC" country="US"/>
<yweather:astronomy sunrise="6:52 am" sunset="7:39 pm"/>
<yweather:forecast day="Wed" date="7 Apr 2010" low="61" high="96" text="Partly Cloudy" code="29" />
Как я могу сделать это с appleScript?
Итак,
set locationCity to [city]
set locationRegion to [reagion]
set locationCountry to [country]
set astronomySunrise to [sunriseTime]
set astronomySunset to [sunsetTime]
Я хочу, чтобы прогнозы были в каком-то массиве, чтобы организовать их по дню / дате