This started as "Accessibility Review Dashboard", or ARD, which is the airport code for Alor Island Airport.
This project does not currently include the framework for a dashboard interface but could be added in the future.
git clone https://github.com/sul-dlss-labs/alor.git
Create a settings.local.yml
file in the config
path and add the following content:
youtube:
api_key: '[YOUR API KEY]'
You can acquire an API key by visiting Google API Credentials
Optionally you can add a default channel ID to your local config under youtube
in settings.local.yml
add:
channel_id: 'CHANNEL_ID'
Note: If a default channel ID is not set, you will need to pass the ID to the rake task.
Note: If this is your first time running the report task, docker will first build the image. This should only take a few moments, and is only required on the first run or when changes have occured in the application.
docker compose run caption_report
docker compose run -e CHANNEL_ID=[INSERT CHANNEL ID] caption_report
With a default channel id set:
bundle exec rake youtube:caption_report
Without a default channel id set:
bundle exec rake youtube:caption_report["CHANNEL_ID"]
The exported CSV file will be available in storage/reports/<CHANNEL_ID>-<DATETIME>.csv
Cached channel, video, and caption data is stored in storage/cache/[key]
By default, the data will be cached mainted for 30 days, but can be set locally by setting:
cache:
expiry_days: 30
In your settings.local.yml
file.