Skip to main content

this package will get the latest earthquake from BMKG -Meteorology, Climatology, and Geophysics Agency

Project description

latest-indonesia-earthquake

this package will get the latest earthquake from BMKG -Meteorology, Climatology, and Geophysics Agency

HOW IT WORKS ?

This package uses beautifllsoup4 and a request which will produce a jSON file output that is ready to be used for web or mobile applications

HOW to use?

  1. make file main.py
  2. paste this code to file main.py

import gempaterkini

from gempaterkini.gempaUPDATE.init import bencana, gempaTerkini

aplikasi gempaterkini folder utama (pembuatan secara prosedural)

if name == 'main': result = gempaterkini.exstrasi_data() gempaterkini.tampilkan_data(result)

aplikasi gempaUPDATE subfolder (pembuatan secara OOP)

if name == 'main': gempa_indonesia = gempaTerkini("https://bmkg.go.id") print(f'Aplikasi Utama menggunakan package yang memiliki deskripsi {gempa_indonesia.description}') gempa_indonesia.tampilkan_keterangan() gempa_indonesia.run()

  1. run program

enjoyy the programm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

update_gempa_indonesia-0.0.5.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

update_gempa_indonesia-0.0.5-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file update_gempa_indonesia-0.0.5.tar.gz.

File metadata

  • Download URL: update_gempa_indonesia-0.0.5.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for update_gempa_indonesia-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b8ca85c6c6b4c3f8207fa43218d5b882d6938a1f5dcf72662843c93319919106
MD5 f12c5cf84056db5fab11693fab5fcc74
BLAKE2b-256 71c03ac0c6ff286dd72be4d60e18ce06da1d6b2d276ea1b90e199a273f4ca1c5

See more details on using hashes here.

File details

Details for the file update_gempa_indonesia-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for update_gempa_indonesia-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ee927b218dc1dd9600333892b25266bb1cc17928709f10043875c2119574594c
MD5 cf4025c110c1860fa54a5f1427aaa631
BLAKE2b-256 e94cf6558007b094723579054d3eb336010e38c284383c2c684cee1e346fb760

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page