# weather api test chrome extension: https://chrome.google.com/webstore/detail/moesif-orign-cors-changer/digfbfaphojjndkpccljibejjbppifbc ``` async function getWeather1hour() { var weather = await fetch('https://tenki.jp/forecast/7/34/6910/31201/1hour.html') .then(function(response) { return response.text(); }) .then(function(html) { return html.match(/class="weather">((.|\n)*)<\/tr/)[0].match(/<p>(.+)<\/p>/)[1]; }); console.log(weather); return weather } async function getWeatherRainRate() { var weather = await fetch('https://tenki.jp/indexes/starry_sky/7/34/6910/') .then(function(response) { return response.text(); }) .then(function(html) { return html.match(/class="precip">([^<]*)</)[1]; }); console.log(weather); return weather } ```