Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/at-sso/swapi-explorer-api
Explore the Star Wars universe with the SWAPI Explorer API! (I actually just added like 3 things lol)
https://github.com/at-sso/swapi-explorer-api
Last synced: 9 days ago
JSON representation
Explore the Star Wars universe with the SWAPI Explorer API! (I actually just added like 3 things lol)
- Host: GitHub
- URL: https://github.com/at-sso/swapi-explorer-api
- Owner: at-sso
- License: mit
- Created: 2024-04-22T03:16:52.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-08-03T17:54:51.000Z (4 months ago)
- Last Synced: 2024-08-03T19:04:02.600Z (4 months ago)
- Language: Python
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# SWAPI Explorer API
This Python script retrieves data from the SWAPI (Star Wars API) and analyzes it to answer some interesting questions about the Star Wars universe.
**Functionality:**
- Finds the number of films featuring planets with an arid climate.
- Counts the total number of Wookiees across the saga.
- Identifies the name of the smallest starship that appears in the first film ("A New Hope").**Requirements:**
- Python 3.x
- `requests` library (install using `pip install requests`)**How to Use:**
1. Clone or download this repository.
2. Install the `requests` library: `pip install requests`
3. Run the script: `python main.py`**Output:**
The script will print the following information to the console:
- The number of films featuring arid planets.
- The total number of Wookiees across the saga.
- The name of the smallest starship that appears in the first film.**Dependencies:**
- This script relies on the `requests` library for making HTTP requests to the SWAPI API.
**License:**
This project is licensed under the MIT License - see the [license](license) file for details.
**Further Development:**
- Enhance error handling for potential issues with API requests or data parsing.
- Provide more informative output messages.
- Allow customization of the script's behavior through command-line arguments or configuration files.
- Consider integrating unit tests to ensure code reliability.