Created
June 25, 2015 02:37
-
-
Save yzernik/d759e00697a5150560dd to your computer and use it in GitHub Desktop.
Get Google Finance quote session and channel
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
## Get the SID | |
curl 'https://www.google.com/finance/qs/channel?VER=8&RID=40689&CVER=1&zx=f0u709om2rkm&t=1' -H 'Referer: https://www.google.com/finance/_/js/a/b/rt=h/ver=2gMDYVmDK2c.en_US./am=!vutE9fCSVdws1JA_/d=0' -H 'Origin: https://www.google.com' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.125 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' --data 'count=0' --compressed | |
## Get the stream channel | |
curl 'https://www.google.com/finance/qs/channel?VER=8&RID=rpc&SID=F2431585066298B&CI=0&AID=0&TYPE=xmlhttp&zx=9xroy71am1r&t=1' -H 'Referer: https://www.google.com/finance/_/js/a/b/rt=h/ver=2gMDYVmDK2c.en_US./am=!vutE9fCSVdws1JA_/d=0' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.125 Safari/537.36' --compressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment