Skip to content

Instantly share code, notes, and snippets.

@641i130
Created Feb 9, 2022
Embed
What would you like to do?
CTA Bus Tracker Cli
#!/bin/bash
# chmod the script and run like this ./ctabus.sh [bus code]
curl -s "http://ctabustracker.com/bustime/eta/getStopPredictionsETA.jsp?route=all&stop=$1" |grep '<pt>'|grep -o '[0-9]*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment