Created
October 9, 2014 22:37
-
-
Save myrkvi/560a99b063d0dfe37e7e to your computer and use it in GitHub Desktop.
Uses AtB's "oracle" to check when buses go from places
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, sys | |
url = "https://www.atb.no/xmlhttprequest.php?service=routeplannerOracle.getOracleAnswer&question=" + " ".join(sys.argv[1:]) | |
r = requests.get(url) | |
text = r.text | |
print(text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment