Blog Post: 用 cheerio 抓取即時天氣
clone and go into this repository
git clone https://github.com/Larry850806/cheerio-weather
cd cheerio-weather
install dependencies and run
npm install
node index.js
result
[
{ time: '今晚至明晨', temp: '20 ~ 21', rain: '30 %' },
{ time: '明日白天', temp: '20 ~ 26', rain: '30 %' },
{ time: '明日晚上', temp: '21 ~ 23', rain: '30 %' }
]