This project aims to fetch recent most earthquake data for keeping a machine learning model up to date for predicting earthquakes.
This project follow these steps:
- Send a GET request to the website.
- Parse the content with BeautifulSoup.
- Find the list items containing the earthquake data.
- Extract relevant data such as place, time, latitude, longitude, magnitude, and depth.
- Store the data in a CSV file (liveearthquakedata.csv).
git clone https://github.com/AravindXD/Web-Scraping
pip install -r requirements.txt
The refresh.py script is used to scrape earthquake data from the website. It extracts data such as place, time, latitude, longitude, magnitude, and depth of earthquakes and stores it in a CSV file liveearthquakedata.csv. The data is scraped from the RiseQ Seismo website primarily using Requests and BeautifulSoup4 Python Library. The extracted CSV file is used for feeding the Machine Learning models' train set.