Gtforce has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks!
I've been struggling with this data (a few months old in perl). The data comes off a html page stripped down to just this. I'm looking to pick specific things like buyQuantity1, buyQuantity2, buyQuantity3. Any advice on how to do this?
The data:
{"futLink":"\/live_market\/dynaContent\/live_watch\/get_quote\/GetQuot +eFO.jsp?underlying=SHREECEM&instrument=FUTSTK&expiry=28DEC2017&type=- +&strike=-","otherSeries":["EQ"],"lastUpdateTime":"15-DEC-2017 14:55:5 +3","tradedDate":"15DEC2017","data":[{"extremeLossMargin":"5.00","cm_f +fm":"21,823.45","bcStartDate":"25-JUL-17","change":"-146.90","buyQuan +tity3":"3","sellPrice1":"17,751.40","buyQuantity4":"5","sellPrice2":" +17,758.50","priceBand":"No Band","buyQuantity1":"3","deliveryQuantity +":"93,925","buyQuantity2":"2","sellPrice5":"17,775.00","quantityTrade +d":"1,09,030","buyQuantity5":"2","sellPrice3":"17,772.10","sellPrice4 +":"17,772.15","open":"18,044.00","low52":"13,140.30","securityVar":"5 +.21","marketType":"N","pricebandupper":"19,688.10","totalTradedValue" +:"2,741.00","faceValue":"10.00","ndStartDate":"-","previousClose":"17 +,898.30","symbol":"SHREECEM","varMargin":"7.50","lastPrice":"17,751.4 +0","pChange":"-0.82","adhocMargin":"-","companyName":"Shree Cements L +imited","averagePrice":"17,850.84","secDate":"14DEC2017","series":"EQ +","isinCode":"INE070A01015","surv_indicator":"-","indexVar":"-","pric +ebandlower":"16,108.50","totalBuyQuantity":"7,050","high52":"20,538.0 +0","purpose":"DIVIDEND - RS 24 PER SHARE","cm_adj_low_dt":"23-DEC-16" +,"closePrice":"0.00","isExDateFlag":false,"recordDate":"-","cm_adj_hi +gh_dt":"15-MAY-17","totalSellQuantity":"7,255","dayHigh":"18,197.90", +"exDate":"21-JUL-17","sellQuantity5":"1","bcEndDate":"31-JUL-17","css +_status_desc":"Listed","ndEndDate":"-","sellQuantity2":"1","sellQuant +ity1":"1","buyPrice1":"17,750.25","sellQuantity4":"2","buyPrice2":"17 +,750.20","sellQuantity3":"2","applicableMargin":"12.50","buyPrice4":" +17,750.00","buyPrice3":"17,750.10","buyPrice5":"17,735.05","dayLow":" +17,701.00","deliveryToTradedQuantity":"86.15","basePrice":"17,898.30" +,"totalTradedVolume":"15,355"}],"optLink":"\/marketinfo\/sym_map\/sym +bolMapping.jsp?symbol=SHREECEM&instrument=-&date=-&segmentLink=17&sym +bolCount=2"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parse html for specific things (JSON)
by LanX (Saint) on Dec 15, 2017 at 11:22 UTC | |
|
Re: parse html for specific things
by ablanke (Monsignor) on Dec 15, 2017 at 11:39 UTC | |
|
Re: parse html for specific things
by Laurent_R (Canon) on Dec 15, 2017 at 22:34 UTC | |
by afoken (Chancellor) on Dec 16, 2017 at 10:53 UTC | |
by marto (Cardinal) on Dec 16, 2017 at 11:05 UTC | |
by Laurent_R (Canon) on Dec 16, 2017 at 11:12 UTC | |
by roboticus (Chancellor) on Dec 18, 2017 at 16:52 UTC | |
by hippo (Archbishop) on Dec 18, 2017 at 17:18 UTC | |
| |
by Dallaylaen (Chaplain) on Dec 19, 2017 at 08:18 UTC | |
|
Re: parse html for specific things
by Anonymous Monk on Dec 16, 2017 at 01:04 UTC |