A simple Python utility to fetch and save customer feedback from the Excaliban Feedback API to a CSV file.
- Python 3.6 or higher
- Access to the Excaliban Feedback API
- Admin API key for authentication
-
Clone this repository:
git clone https://github.com/yourusername/Excaliban-Feedback-Query.git cd Excaliban-Feedback-Query -
Install dependencies:
pip3 install -r requirements.txt
-
Create a
.envfile in the project root:cp .env.example .env
-
Edit the
.envfile and add your API credentials:API_URL=https://api.excaliban.com/feedback FEEDBACK_API_KEY=your_api_key_here
Run the script to fetch feedback and save it to a CSV file:
python3 fetch_feedback.pyThis will:
- Connect to the Excaliban Feedback API
- Fetch up to 20 most recent feedback items
- Save them to
feedback_data.csvin the current directory - Overwrite any existing CSV file with the same name
Configuration is managed through environment variables in the .env file:
API_URL: The endpoint URL for the feedback APIFEEDBACK_API_KEY: Your admin API key
Additional settings can be modified in fetch_feedback.py:
CSV_FILE: Output filename (default:feedback_data.csv)MAX_RESULTS: Maximum number of feedback items to fetch (default: 20)
On macOS, you can open the CSV file with:
- Numbers: Double-click the file or open with Numbers
- Preview: Right-click and select "Open With" > "Preview"
- TextEdit: Right-click and select "Open With" > "TextEdit"
- VS Code: Open in VS Code with CSV extension
See CLAUDE.md for more detailed documentation about the project.
Important Security Notes:
- Never commit your
.envfile to version control - Keep your API key confidential
- Rotate your API key regularly
- The
.gitignorefile is configured to exclude.envfiles
MIT License - Feel free to use and modify as needed.