This project is a web scraping application that extracts information about the gods from the Smite Fandom website and saves the data to a JSON file.
The application consists of several files that handle different tasks:
index.ts
: The entry point of the program that executes the main logic. It fetches all the gods' data from the Smite Fandom website, saves it to a file, and handles errors.godService.ts
: Contains functions for retrieving god links and details from the Smite Fandom website.utils.ts
: Provides utility functions for making HTTP requests, parsing HTML, and normalizing text.
To run the application, follow these steps:
- Make sure you have Node.js installed on your system.
- Clone this repository to your local machine.
- Open a terminal and navigate to the project's root folder.
- Run the command
npm install
to install the dependencies. - Then, run
npm start
to start the application.
The god data will be extracted from the Smite Fandom website and saved to a file named gods.json
in the root directory of the project.
Contributions are welcome! If you want to improve this project, follow these steps:
- Fork this repository.
- Create a branch with a clear description of the new feature or improvement you'll be working on.
- Make the changes in your branch.
- Submit a pull request describing your changes.
- This project relies on web scraping and extracts information from the Smite Fandom website. Any changes to the website's structure may affect the application's functionality.
- This project is provided as an educational example and is not intended for commercial purposes.
If you have any questions or suggestions related to this project, you can contact me through my GitHub profile.
Thank you for your interest in the project!