This Python script fetches and displays information about video games using the RAWG API. Simply enter the name of a game, and the script will provide details such as the game’s release date, rating, description, and background image.
requests
library git clone https://github.com/veddevv/vgde.git
cd vgde
pip install -r requirements.txt
RAWG_API_KEY
environment variable with your actual RAWG API key:
export RAWG_API_KEY='your_api_key_here'
# Interactive mode
python vgde.py
# Direct mode with command-line argument
python vgde.py "The Witcher 3"
The script supports the following environment variables:
RAWG_API_KEY
(required): Your RAWG API keyDEVELOPER_MODE
: Set to true
, 1
, or t
to enable developer mode with detailed loggingREQUEST_TIMEOUT
: Set a custom timeout in seconds for API requests (default: 10)Example with all options: ```sh RAWG_API_KEY=’your_key’ DEVELOPER_MODE=true REQUEST_TIMEOUT=15 python vgde.py