The data for the Election Resource Hub is stored in Airtable, which is accessible via an API with a 5 requests/second rate limit.
First, we'll need to set up a wrapper for making authorized calls to the correct table for ERH data—the pyairtable library seems like a well-maintained utility for this.
Due to the rate limit, we'll also need to cache data returned from Airtable within Squarelet, with a reasonable time-to-live.
The data for the Election Resource Hub is stored in Airtable, which is accessible via an API with a 5 requests/second rate limit.
First, we'll need to set up a wrapper for making authorized calls to the correct table for ERH data—the
pyairtable
library seems like a well-maintained utility for this.Due to the rate limit, we'll also need to cache data returned from Airtable within Squarelet, with a reasonable time-to-live.