Skip to content

Instantly share code, notes, and snippets.

@kowalcj0
Last active June 12, 2018 17:38
Show Gist options
  • Save kowalcj0/1b6e1c2e9304c90ec70dcc714253384c to your computer and use it in GitHub Desktop.
Save kowalcj0/1b6e1c2e9304c90ec70dcc714253384c to your computer and use it in GitHub Desktop.
run pa11y accessibility scan in parallel and save report for each URL in html file
sudo dnf install parallel
npm install pa11y pa11y-reporter-html
# the Perl expression {= s:[/\:\?\&\=]:-:g; =} will replace all special charachers '/:?&' in report filename with '-'
parallel 'pa11y --reporter=html {} > {= s:[/\:\?\&\=]:-:g; =}.html' < urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment