curl-users
Using curl to download CBOE csv file quotes...help!
Date: Fri, 28 Jan 2011 11:23:42 -0500
Hi comrades:
I'm trying to use curl to download CBOE option quotes from this URL: http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
Hitting the page with a browser, you just type in the stock/index symbol, click "Download" and it sends back a simple csv file of all the option chains and price quotes...very useful!
Can't get this to work from the command-line curl though...I realize it's doing a lot of stuff behind the scenes (and I've gotten a little help from some developers I work with), but still no dice. Below is everything I've tried so far, no dice...can anyone point me in the right direction?
TIA!
Dave
curl -d Ticker=INTU -d HeaderSearch=Search -d HeaderQuote=Quote http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -F ctl00\$ctl00\$AllContent\$ContentMain\$QuoteTableDownloadCtl1\$txtTicker=INTU -F ctl00\$ctl00\$AllContent\$ContenMain\$QuoteTableDownloadCtl1\$cmdSubmit=Downloal00\$ctl00\$AllContent\$ucHeader\$CBOEHeaderSearchBox\$txtHeaderSearch=Search -F ctl00\$ctl00\$AllContent\$ucHeader\$ucCBOEHeaderQuoteBox\$txtHeaderQuote=Quote http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -F "ctl00\$ctl00\$AllContent\$ContentMain\$QuoteTableDownloadCtl1\$txtTicker=INTU" -F "ctl00\$ctl00\$AllContent\$ContenMain\$QuoteTableDownloadCtl1\$cmdSubmit=Downloal00\$ctl00\$AllContent\$ucHeader\$CBOEHeaderSearchBox\$txtHeaderSearch=Search" -F "ctl00\$ctl00\$AllContent\$ucHeader\$ucCBOEHeaderQuoteBox\$txtHeaderQuote=Quote" http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -d "ctl00\$ctl00\$AllContent\$ContentMain\$QuoteTableDownloadCtl1\$txtTicker=INTU" -d "ctl00\$ctl00\$AllContent\$ContenMain\$QuoteTableDownloadCtl1\$cmdSubmit=Downloal00\$ctl00\$AllContent\$ucHeader\$CBOEHeaderSearchBox\$txtHeaderSearch=Search" -d "ctl00\$ctl00\$AllContent\$ucHeader\$ucCBOEHeaderQuoteBox\$txtHeaderQuote=Quote" http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -o test.pge 'http://www.cboe.com/MktQuote/DelayedQuotes.asp?TICKER=qqqq&PAGE=1&ALL=1&bRunQuery=true'
curl "http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx?TICKER=qqqq&PAGE=1&ALL=1&bRunQuery=true"
curl -A "Mozilla/4.77" "http://www.cboe.com/MktQuote/DelayedQuotes.asp?TICKER=qqqq&PAGE=1&ALL=2&bRunQuery=true"
curl -A "Mozilla/4.77" -F "ctl00\$ctl00\$AllContent\$ContentMain\$QuoteTableDownloadCtl1\$txtTicker=INTU" -F "ctl00\$ctl00\$AllContent\$ContenMain\$QuoteTableDownloadCtl1\$cmdSubmit=Downloal00\$ctl00\$AllContent\$ucHeader\$CBOEHeaderSearchBox\$txtHeaderSearch=Search" -F "ctl00\$ctl00\$AllContent\$ucHeader\$ucCBOEHeaderQuoteBox\$txtHeaderQuote=Quote" http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -A "Mozilla/4.77" -d "ctl00\$ctl00\$AllContent\$ContentMain\$QuoteTableDownloadCtl1\$txtTicker=INTU" -d "ctl00\$ctl00\$AllContent\$ContenMain\$QuoteTableDownloadCtl1\$cmdSubmit=Downloal00\$ctl00\$AllContent\$ucHeader\$CBOEHeaderSearchBox\$txtHeaderSearch=Search" -d "ctl00\$ctl00\$AllContent\$ucHeader\$ucCBOEHeaderQuoteBox\$txtHeaderQuote=Quote" http://www.cboe.com/DelayedQuote/QuoteTableDownload.aspx
curl -A "Mozilla/4.77" "http://quote.cboe.com/QuoteTable.asp?REFERER=1&TICKER=OEX&PAGE=1&ALL=2&bRunQuery=true"
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-28