Skip to content

Afad'ın resmi web sayfasından son 24 saatte Türkiye'de olan depremleri çeken API.

License

Notifications You must be signed in to change notification settings

Umut-D/son-depremler-afad-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Son Depremler AFAD API

AFAD'ın resmi web sayfasından son 24 saatte Türkiye'de olan depremleri çeken API.

Nasıl kullanılır:

Paketi kurduktan sonra aşağıdaki import işlemini yapınız:

from app.dosya.depremler import Depremler

"Tarih ve Saat, Konum, Şiddet, Enlem, Boylam, Derinlik" şeklinde olan verileri;

dizi olarak göstermek için -> [['2025-03-02 01:35:45', 'Dulkadiroğlu (Kahramanmaraş)', '1.8', '37.44472', '37.1425', '7']]...

depremler = Depremler()
print(depremler.tum_veriler())

satır satır ve istenen sayıda yazdırmak için -> 2025-03-02 01:35:45 - Dulkadiroğlu (Kahramanmaraş) - 1.8 - 37.44472 - 37.1425 - 7

depremler = Depremler()
print(depremler.duzenli_veriler()())

_tablo halinde ve istenen sayıda yazdırmak için (Tablo hali buradan çok daha güzel görünüyor) -> +---------------------+---------------------------+--------+--------+---------+-----------+ | Tarih ve Saat | Konum | Şiddet | Enlem | Boylam | Derinlik | +=====================+===========================+========+========+=========+===========+ | 2025-03-02 01:35:45 | Dulkadiroğlu (Kahramanmaraş) | 1.8 | 37.4447 | 37.1425 | 7 |

depremler = Depremler()
print(depremler.tablo_veriler())

PyPI.org Link:

https://pypi.org/project/son-depremler-afad-api/1.1.0/

About

Afad'ın resmi web sayfasından son 24 saatte Türkiye'de olan depremleri çeken API.

Topics

Resources

License

Stars

Watchers

Forks

Languages