This Python script leverages the PokéAPI to fetch and display details about Pokémon based on their type. It is designed to handle a large number of requests concurrently using the concurrent.futures
module and manage potential errors effectively.
Ensure you have Python 3 and requests
library installed to run this script.
git clone <repository-url>
cd <repository-directory>
pip install requests
Run the script from the command line by specifying the Pokémon type:
python script.py --type water
For fetching details of all Pokémon types, use:
python script.py --type all
or simply run without specifying the type:
python script.py
The script includes robust error handling for various potential issues, including network errors, timeouts, and data processing errors, with retries for failed requests.
Feel free to fork the project, make improvements, and submit pull requests.