Created
August 6, 2014 16:14
-
-
Save hagope/76ac6955ec5f450ea036 to your computer and use it in GitHub Desktop.
Realtime Stock Quote from Google Finance using cURL
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
#!/bin/bash | |
# Usage: stock.sh TWTR 30 | |
# Say TWTR current price every 30 seconds | |
while true | |
do | |
curl -s https://www.google.com/finance?q=$1 | grep ref_ -m 1 | sed 's|<[^>]*>||g' | say | |
sleep $2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Has moved, it seems. 302 on that, and following the url gets you nowhere...