Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Built a 30-Line Earthquake Monitor in Python — Here's How

说明与用途

一个30行Python脚本在终端显示最近的重大地震,取代了推特的延迟提醒。

问题

I wanted real‑time alerts for significant earthquakes but only received them via Twitter, which was delayed.

结果

The script provides a quick, terminal‑based view of recent significant earthquakes, improving situational awareness compared to delayed social‑media alerts.

工作流

  • Install the Rich library with pip install rich
  • Create quake_check.py with functions to fetch and display data from the USGS feed
  • Run the script with python3 quake_check.py to see a table of recent significant earthquakes

证据

I found out about it 40 minutes later scrolling through Twitter. Forty minutes.

来源

Run it: python3 quake_check.py

来源

  • 记录日期: 2026-09-11T04:16:00.680Z