神刀安全网

Canada Weather Scraper

Canada Weather Scraper

Retrieves data from the Government of Canada Open Data Weather API & writes JSON data to disk, allowing for file watchers to pick up the data.

This scraper will create alerts.json & weather.json in a target directory asynchronously.

Arguments

city / c ( Ottawa )

Name of a Canadian city.

directory / d ( ./data )

Directory to write data to.

uid / u

UID to run process as.

Example

$ node index.js -d ~/Desktop

Requirements

Requires node.js with ES6 syntax support (^4.x.x).

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Canada Weather Scraper

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址