Thread Rating:
  • 322 Vote(s) - 2.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using cURL command, how do we fetch stock data which comes back *WITHOUT comm
01-15-2015, 11:57 PM, (This post was last modified: 01-16-2015, 12:07 AM by Scotland Warrior.)
#1
Using cURL command, how do we fetch stock data which comes back *WITHOUT comm
What can I add to the below script so that it fetches the stock data and brings it back WITHOUT any commas and spaces? For example GOOG Outstanding shares is 675,000,000.

I desire the output of 675000000 for my txt file. (no spaces or commas or punctuation). I need decimal functionality however for share prices though). This txt file data is then inputted into Excel and needs to be delimited so the values need spacing as well.

cd desktop/quoteUpdate
while true
do
curl -s http://download.finance.yahoo.com/d/quot...6sj2ss6sf6 \
sed 's/"[A-Z][^"]*",/ & /g' \

| awk -- '{
gsub("\"", "", $2);
gsub(",", "", $4);
gsub(",", "", $8);
print $1 $2 $4 "," $6 $8


echo UPDATED:
date
sleep 10



Messages In This Thread
Using cURL command, how do we fetch stock data which comes back *WITHOUT comm - by Scotland Warrior - 01-15-2015, 11:57 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Curl execute Oracle database procedure NamDH 3 4,054 04-21-2017, 03:40 PM
Last Post: tdeng
  Print data NamDH 5 4,615 04-04-2017, 02:27 PM
Last Post: dyoshida
  TLS通信下でCould not deserialize the object from Curl.発生 MIT 3 4,767 03-10-2017, 08:35 AM
Last Post: MIT
  Protecting SSL private key in a Curl script aensys 1 2,363 02-10-2017, 02:02 PM
Last Post: heavybugtracker
  curl library 7.36.0: curl_easy_perform() function call failed when used for getting a joezhao 1 3,632 10-19-2016, 09:41 AM
Last Post: dyoshida
  Curl IDE からのランチャが見つかりません umemura 1 3,771 06-30-2016, 10:12 AM
Last Post: umemura
  Curl RTE Install smtit 1 2,738 05-06-2016, 12:36 PM
Last Post: dice256
  Curl RTE Command line smtit 1 2,917 04-19-2016, 09:35 AM
Last Post: dice256
  What OS that CURL can support for deloyment? tiennv 1 4,574 08-22-2015, 02:12 AM
Last Post: tdeng
  Curl RTEのPPAPIプラグインについて でり 1 4,398 06-09-2015, 11:03 AM
Last Post: でり
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1195')