An application and Twitter bot that bites websites to taste their accessibility.
This repository includes a CLI to make zookeeping tasks a breeze.
bin/a11ygator
In order to use the CLI, you first have to set environment variables.
It is possible to load variables as CLI arguments (i.e. --stack-name
for StackName variable) or to load them all using an .env
file.
You can load that file setting the flag --env-file=.env
.
If you have deployed A11ygator launching the CloudFormation template provided
in this repository, you can fetch informations in the stack's outputs setting
the --stack-name
flag, or the A11YGATOR_STACK_NAME
environment variable.
The URL of the A11ygator API, if not explicitly set with --api-url
,
will be desumed from CloudFormation stack outputs.
Manage reports.
Schedules a report for future generation. The CLI will interactively ask the URL to analyze and the time at which generate the report.
List reports scheduled to be generated in the future. The CLI will let the user interactively choose one or more schedules to abort.
Manage Twitter bot.
You can pass Twitter credentials as flags when launching the script
(--consumer-key
, --consumer-secret
, --oauth-token
, --oauth-token-secret
),
or via environment variables (A11YGATOR_CONSUMER_KEY
, A11YGATOR_CONSUMER_SECRET
,
A11YGATOR_OAUTH_TOKEN
, A11YGATOR_OAUTH_TOKEN_SECRET
).
If none of these are set, they will be asked interactively.
Register the Twitter webhook endpoint as a Webhook for the configured Twitter application.
Subscribe the configured Twitter application for account-related events for the authenticated Twitter user. Any registered webhook will now be called every time an event occurs.