Skip to content

Instantly share code, notes, and snippets.

@phil8192
Created May 18, 2018 22:26
Show Gist options
  • Save phil8192/fc347b3f75af8500a3382849c42e2aab to your computer and use it in GitHub Desktop.
Save phil8192/fc347b3f75af8500a3382849c42e2aab to your computer and use it in GitHub Desktop.
#!/bin/bash
curl -s "https://www.buscms.com/api/REST/html/departureboard.aspx?clientid=CardiffBus&stopid=14302" \
|sed 's/.*data-departureTime//; s/<.*//; s/.*>//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment