The Earthquake Data Scraper is a Node.js application that scrapes the latest earthquake data from the Turkish Disaster and Emergency Management Authority (AFAD) website. The application provides a simple API endpoint to access the scraped data in JSON format.
Here're some of the project's best features:
- Date and time of the earthquake
- Latitude and longitude of the epicenter
- Depth of the earthquake
- Magnitude of the earthquake
- Location of the earthquake
- Provides a RESTful API endpoint to access the data.
The API is deployed and can be accessed at:
You can use this endpoint to get the latest earthquake data in JSON format.
1. Clone the repository
git clone https://github.com/yourusername/earthquake-scraper.git
2. Go to folder
cd earthquake-scraper
3. Install dependencies
npm install
4. Start the server
node server.js
This project is maintained by a individual developer. We welcome everyone who wants to help with improvements. Create your own clone and commit your changes in a new branch.
Technologies used in the project:
- Node.js: JavaScript runtime for building the server.
- Express: Web framework for Node.js to create the API.
- Axios: Promise-based HTTP client for making requests to the AFAD website.
- Cheerio: jQuery-like library for parsing and manipulating HTML.
This project is licensed under the MIT License