脚本编写
编写shell脚本如下,并保存命名为stock
curl 'http://hq.sinajs.cn/list=s_sh000001' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://finance.sina.com.cn/realstock/company/sh000001/nc.shtml'