Welcome to the Candid API Grants Data Fetcher! This application helps users fetch data from the Candid API - Transactions database and prepares the data for loading into the GrantScope application.
- Fetches grant transaction data from the Candid API.
- Allows users to specify search parameters such as year range, dollar amount range, subjects, populations, locations, and support strategies.
- Saves fetched grant data to JSON files.
- Saves and loads search configurations for easy reuse.
- Python 3.8 or higher
- Candid API key (sign up to get an API key)
- Clone the repository:
git clone https://github.com/your-repo/candid-api-grants-fetcher.git cd candid-api-grants-fetcher
- Create virtual environment:
python -m venv venv
- Install the required packages:
pip install -r requirements.txt
- Create a
.env
file in the root directory of the project.touch .env
- Add the following environment variables to the
.env
file:CANDID_API_KEY=your_api_key_here
- Run the application:
python app.py
- Follow the prompts to fetch grant data from the Candid API.
- Use the saved JSON data into the GrantScope application https://grantscope.streamlit.app/.
This project is licensed under the MIT License. See the LICENSE file for details.