This Python script tracks recent earthquakes using data from the Afad Earthquake Database. It retrieves earthquake information from the database and prints details about earthquakes with a magnitude greater than 2 on the Richter scale.
To use this script, you need to have Python installed on your system. You also need to install the following libraries:
- requests
- beautifulsoup4
pip install requests
pip install beautifulsoup4
- Clone the repository to your local machine or download the
earthquake.py
script. - Navigate to the directory where the script is located.
- Run the script using Python:
python earthquake.py
The script will continuously track earthquakes and print information about earthquakes with a magnitude greater than 2.