bmkg-scrape

1.0.5 • Public • Published

Buy Me A Coffee



❄Content-Library

  • 📰 0% Ads
  • 💸 0% Tracker
  • 📃 0% Logging

❄Docs var lib = require('bmkg-scrape');

  • lib.autogempa()
  • lib.gempa_dirasakan()
  • lib.gempa_terkini()

❄To-Do

A list that i should do more for this project...

  • ✔ Check Gempa
  • 🔜 Check Cuaca

🖥Requirements

  • Node v10+ (Node v14 Recommended)
  • Git installed
  • Fast network connection

📠Community

🎁Installation

git clone https://github.com/insaneupdate/bmkg-scrape
cd bmkg-scrape
npm install

📡Test

node test
var lib = require('bmkg-scrape');

async function test(){
    var autogempa = await lib.autogempa()
    console.log(JSON.stringify(autogempa,null,2))
}

test()

❄Result

{
  "status": true,
  "creator": "@insaneupdate",
  "message": {
    "Infogempa": {
      "gempa": {
        "Tanggal": "14 Mei 2021",
        "Jam": "16:16:30 WIB",
        "DateTime": "2021-05-14T09:16:30+00:00",
        "point": {
          "coordinates": "0.01,96.43"
        },
        "Lintang": "0.01 LU",
        "Bujur": "96.43 BT",
        "Magnitude": 5.3,
        "Kedalaman": "10 km",
        "Wilayah": "156 km BaratDaya NIASBARAT-SUMUT",
        "Potensi": "Tidak berpotensi tsunami",
        "Dirasakan": "-",
        "Shakemap": "20210514161957.mmi.jpg"
      }
    }
  }
}

Package Sidebar

Install

npm i bmkg-scrape

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

11.1 kB

Total Files

5

Last publish

Collaborators

  • azkadev