【python】+json+解析数组json字符串(且键没有引号)(完美解决)

demjson模块

https://blog.csdn.net/weixin_30558305/article/details/95452818



 

 

1、需解析的数组json格式的字符串

备注:这是一个string类型的字符串 即为第二步中的“result”变量

1 [{symbol:"sh600000",code:"600000",name:"浦发银行",trade:"13.090",pricechange:"0.230",changepercent:"1.788",buy:"13.090",sell:"13.100",settlement:"12.860",open:"12.980",high:"13.240",low:"12.950",volume:103158806,amount:1347032670,ticktime:"15:00:01",per:7.076,pb:0.83,mktcap:38421873.239673,nmc:36787826.943791,turnoverratio:0.36706},{symbol:"sh600004",code:"600004",name:"白云机场",trade:"20.970",pricechange:"-0.260",changepercent:"-1.225",buy:"20.960",sell:"20.970",settlement:"21.230",open:"21.320",high:"21.380",low:"20.750",volume:17035409,amount:357130175,ticktime:"15:00:05",per:38.127,pb:2.704,mktcap:4339365.117858,nmc:4339365.117858,turnoverratio:0.82324},{symbol:"sh600006",code:"600006",name:"东风汽车",trade:"4.460",pricechange:"-0.010",changepercent:"-0.224",buy:"4.460",sell:"4.470",settlement:"4.470",open:"4.480",high:"4.500",low:"4.450",volume:5265379,amount:23552519,ticktime:"15:00:01",per:16.107,pb:1.235,mktcap:892000,nmc:892000,turnoverratio:0.26327},{symbol:"sh600007",code:"600007",name:"中国国贸",trade:"17.540",pricechange:"0.040",changepercent:"0.229",buy:"17.540",sell:"17.590",settlement:"17.500",open:"17.600",high:"17.630",low:"17.440",volume:595792,amount:10446804,ticktime:"15:00:01",per:22.779,pb:2.494,mktcap:1766773.564636,nmc:1766773.564636,turnoverratio:0.05915},{symbol:"sh600008",code:"600008",name:"首创股份",trade:"3.420",pricechange:"0.030",changepercent:"0.885",buy:"3.410",sell:"3.420",settlement:"3.390",open:"3.380",high:"3.430",low:"3.380",volume:8631300,amount:29368706,ticktime:"15:00:05",per:23.602,pb:1.783,mktcap:1944423.286794,nmc:1648650.030408,turnoverratio:0.17905},{symbol:"sh600009",code:"600009",name:"上海机场",trade:"74.910",pricechange:"-2.090",changepercent:"-2.714",buy:"74.900",sell:"74.910",settlement:"77.000",open:"76.980",high:"77.040",low:"74.700",volume:14480277,amount:1091374434,ticktime:"15:00:05",per:34.05,pb:4.865,mktcap:14434845.733968,nmc:8191231.689927,turnoverratio:1.32424},{symbol:"sh600010",code:"600010",name:"包钢股份",trade:"1.450",pricechange:"0.000",changepercent:"0.000",buy:"1.440",sell:"1.450",settlement:"1.450",open:"1.450",high:"1.460",low:"1.440",volume:76956062,amount:111380100,ticktime:"15:00:01",per:19.863,pb:1.231,mktcap:6609829.73396,nmc:4593195.680115,turnoverratio:0.24294},{symbol:"sh600011",code:"600011",name:"华能国际",trade:"5.850",pricechange:"-0.180",changepercent:"-2.985",buy:"5.850",sell:"5.860",settlement:"6.030",open:"6.000",high:"6.020",low:"5.830",volume:42334289,amount:249358465,ticktime:"15:00:01",per:83.571,pb:1.186,mktcap:9183384.615015,nmc:6433660.302615,turnoverratio:0.38494},{symbol:"sh600012",code:"600012",name:"皖通高速",trade:"5.580",pricechange:"0.080",changepercent:"1.455",buy:"5.570",sell:"5.580",settlement:"5.500",open:"5.500",high:"5.610",low:"5.480",volume:3266484,amount:18140831,ticktime:"15:00:01",per:8.241,pb:0.907,mktcap:925504.38,nmc:650404.8,turnoverratio:0.28024},{symbol:"sh600015",code:"600015",name:"华夏银行",trade:"7.700",pricechange:"0.050",changepercent:"0.654",buy:"7.690",sell:"7.700",settlement:"7.650",open:"7.660",high:"7.750",low:"7.640",volume:20075296,amount:154684785,ticktime:"15:00:05",per:4.936,pb:0.603,mktcap:11848162.46691,nmc:9873468.72281,turnoverratio:0.15656},{symbol:"sh600016",code:"600016",name:"民生银行",trade:"6.190",pricechange:"0.050",changepercent:"0.814",buy:"6.180",sell:"6.190",settlement:"6.140",open:"6.170",high:"6.240",low:"6.150",volume:66808972,amount:413784163,ticktime:"15:00:01",per:5.43,pb:0.634,mktcap:27101317.052738,nmc:21951054.268847,turnoverratio:0.1884},{symbol:"sh600017",code:"600017",name:"日照港",trade:"2.940",pricechange:"0.000",changepercent:"0.000",buy:"2.930",sell:"2.940",settlement:"2.940",open:"2.940",high:"2.950",low:"2.930",volume:7557200,amount:22203126,ticktime:"15:00:01",per:14,pb:0.773,mktcap:904242.243072,nmc:904242.243072,turnoverratio:0.24571},{symbol:"sh600018",code:"600018",name:"上港集团",trade:"5.790",pricechange:"0.040",changepercent:"0.696",buy:"5.780",sell:"5.790",settlement:"5.750",open:"5.780",high:"5.790",low:"5.730",volume:10453470,amount:60276278,ticktime:"15:00:01",per:13.058,pb:1.729,mktcap:13417557.62235,nmc:13417557.62235,turnoverratio:0.04511},{symbol:"sh600019",code:"600019",name:"宝钢股份",trade:"5.810",pricechange:"0.040",changepercent:"0.693",buy:"5.810",sell:"5.820",settlement:"5.770",open:"5.770",high:"5.830",low:"5.760",volume:23994211,amount:139235294,ticktime:"15:00:01",per:5.99,pb:0.755,mktcap:12941461.477875,nmc:12840731.503425,turnoverratio:0.10857},{symbol:"sh600020",code:"600020",name:"中原高速",trade:"4.150",pricechange:"0.000",changepercent:"0.000",buy:"4.140",sell:"4.150",settlement:"4.150",open:"4.140",high:"4.210",low:"4.120",volume:10363264,amount:43027619,ticktime:"15:00:01",per:20.224,pb:0.922,mktcap:932659.31028,nmc:932659.31028,turnoverratio:0.46113},{symbol:"sh600021",code:"600021",name:"上海电力",trade:"7.930",pricechange:"0.020",changepercent:"0.253",buy:"7.920",sell:"7.930",settlement:"7.910",open:"7.910",high:"7.940",low:"7.860",volume:3012078,amount:23773470,ticktime:"15:00:01",per:7.099,pb:1.329,mktcap:2075411.208221,nmc:1861366.319865,turnoverratio:0.12832},{symbol:"sh600022",code:"600022",name:"山东钢铁",trade:"1.470",pricechange:"0.000",changepercent:"0.000",buy:"1.470",sell:"1.480",settlement:"1.470",open:"1.470",high:"1.480",low:"1.470",volume:18932260,amount:27906689,ticktime:"15:00:01",per:7.64,pb:0.775,mktcap:1609142.793552,nmc:1609142.793552,turnoverratio:0.17295},{symbol:"sh600023",code:"600023",name:"浙能电力",trade:"3.930",pricechange:"0.010",changepercent:"0.255",buy:"3.930",sell:"3.940",settlement:"3.920",open:"3.920",high:"3.950",low:"3.910",volume:11189156,amount:43958476,ticktime:"15:00:01",per:13.1,pb:0.861,mktcap:5345071.165284,nmc:5345071.165284,turnoverratio:0.08227},{symbol:"sh600025",code:"600025",name:"华能水电",trade:"4.340",pricechange:"-0.010",changepercent:"-0.230",buy:"4.330",sell:"4.340",settlement:"4.350",open:"4.340",high:"4.370",low:"4.310",volume:18774505,amount:81488088,ticktime:"15:00:01",per:13.563,pb:1.761,mktcap:7812000,nmc:3874752,turnoverratio:0.21029},{symbol:"sh600026",code:"600026",name:"中远海能",trade:"6.200",pricechange:"-0.010",changepercent:"-0.161",buy:"6.190",sell:"6.200",settlement:"6.210",open:"6.280",high:"6.320",low:"6.160",volume:16640431,amount:103566019,ticktime:"15:00:01",per:237.548,pb:0.891,mktcap:2499860.37382,nmc:1696340.37382,turnoverratio:0.6082},{symbol:"sh600027",code:"600027",name:"华电国际",trade:"3.660",pricechange:"-0.040",changepercent:"-1.081",buy:"3.650",sell:"3.660",settlement:"3.700",open:"3.690",high:"3.690",low:"3.640",volume:25676069,amount:94022649,ticktime:"15:00:01",per:23.312,pb:0.824,mktcap:3609849.454998,nmc:2560441.957398,turnoverratio:0.36702},{symbol:"sh600028",code:"600028",name:"中国石化",trade:"4.990",pricechange:"0.020",changepercent:"0.402",buy:"4.990",sell:"5.000",settlement:"4.970",open:"4.990",high:"5.000",low:"4.970",volume:41060092,amount:204878220,ticktime:"15:00:01",per:9.578,pb:0.834,mktcap:60414533.613354,nmc:47683327.751954,turnoverratio:0.04297},{symbol:"sh600029",code:"600029",name:"南方航空",trade:"6.610",pricechange:"0.000",changepercent:"0.000",buy:"6.610",sell:"6.620",settlement:"6.610",open:"6.610",high:"6.630",low:"6.550",volume:14949042,amount:98539379,ticktime:"15:00:01",per:23.607,pb:1.288,mktcap:8108600.881046,nmc:5361715.004891,turnoverratio:0.18429},{symbol:"sh600030",code:"600030",name:"中信证券",trade:"21.850",pricechange:"0.060",changepercent:"0.275",buy:"21.840",sell:"21.850",settlement:"21.790",open:"21.840",high:"22.050",low:"21.680",volume:55338440,amount:1207721804,ticktime:"15:00:00",per:28.377,pb:1.698,mktcap:26475444.854,nmc:21445035.8145,turnoverratio:0.56383},{symbol:"sh600031",code:"600031",name:"三一重工",trade:"14.010",pricechange:"-0.260",changepercent:"-1.822",buy:"14.010",sell:"14.020",settlement:"14.270",open:"14.270",high:"14.290",low:"13.920",volume:68080452,amount:958499810,ticktime:"15:00:05",per:17.718,pb:2.965,mktcap:11791475.307798,nmc:11780461.756791,turnoverratio:0.80965},{symbol:"sh600033",code:"600033",name:"福建高速",trade:"3.070",pricechange:"-0.010",changepercent:"-0.325",buy:"3.060",sell:"3.070",settlement:"3.080",open:"3.070",high:"3.080",low:"3.060",volume:3649050,amount:11182271,ticktime:"15:00:01",per:11.485,pb:0.901,mktcap:842530.8,nmc:842530.8,turnoverratio:0.13296},{symbol:"sh600035",code:"600035",name:"楚天高速",trade:"3.360",pricechange:"-0.010",changepercent:"-0.297",buy:"3.360",sell:"3.370",settlement:"3.370",open:"3.370",high:"3.390",low:"3.350",volume:3973038,amount:13366303,ticktime:"15:00:01",per:12.923,pb:0.914,mktcap:568823.579856,nmc:512506.930992,turnoverratio:0.26047},{symbol:"sh600036",code:"600036",name:"招商银行",trade:"36.500",pricechange:"0.500",changepercent:"1.389",buy:"36.500",sell:"36.510",settlement:"36.000",open:"36.180",high:"36.750",low:"35.960",volume:43122021,amount:1571999093,ticktime:"15:00:00",per:11.661,pb:1.724,mktcap:92052436.44365,nmc:75295647.16585,turnoverratio:0.20904},{symbol:"sh600037",code:"600037",name:"歌华有线",trade:"9.360",pricechange:"0.070",changepercent:"0.753",buy:"9.350",sell:"9.360",settlement:"9.290",open:"9.290",high:"9.380",low:"9.260",volume:2589461,amount:24146569,ticktime:"15:00:01",per:18.765,pb:0.981,mktcap:1302704.099424,nmc:1302704.099424,turnoverratio:0.18605},{symbol:"sh600038",code:"600038",name:"中直股份",trade:"42.840",pricechange:"-0.640",changepercent:"-1.472",buy:"42.840",sell:"42.900",settlement:"43.480",open:"43.550",high:"43.600",low:"42.180",volume:4207043,amount:180090402,ticktime:"15:00:01",per:49.486,pb:3.229,mktcap:2525318.251344,nmc:2525318.251344,turnoverratio:0.71369},{symbol:"sh600039",code:"600039",name:"四川路桥",trade:"3.260",pricechange:"-0.020",changepercent:"-0.610",buy:"3.250",sell:"3.260",settlement:"3.280",open:"3.280",high:"3.280",low:"3.240",volume:9534880,amount:31038882,ticktime:"15:00:01",per:10.046,pb:0.804,mktcap:1177031.31626,nmc:1127005.74095,turnoverratio:0.27581},{symbol:"sh600048",code:"600048",name:"保利地产",trade:"15.380",pricechange:"0.060",changepercent:"0.392",buy:"15.380",sell:"15.390",settlement:"15.320",open:"15.390",high:"15.540",low:"15.200",volume:48181800,amount:740742349,ticktime:"15:00:01",per:9.673,pb:1.534,mktcap:18350027.881176,nmc:18350027.881176,turnoverratio:0.40383},{symbol:"sh600050",code:"600050",name:"中国联通",trade:"5.920",pricechange:"0.000",changepercent:"0.000",buy:"5.910",sell:"5.920",settlement:"5.920",open:"5.930",high:"5.950",low:"5.890",volume:61995017,amount:366398932,ticktime:"15:00:01",per:44.815,pb:1.286,mktcap:18371953.766704,nmc:12548385.06584,turnoverratio:0.29248},{symbol:"sh600051",code:"600051",name:"宁波联合",trade:"5.840",pricechange:"-0.010",changepercent:"-0.171",buy:"5.840",sell:"5.860",settlement:"5.850",open:"5.840",high:"5.880",low:"5.830",volume:1589300,amount:9306197,ticktime:"15:00:01",per:7.3,pb:0.758,mktcap:181553.92,nmc:181553.92,turnoverratio:0.51123},{symbol:"sh600052",code:"600052",name:"浙江广厦",trade:"4.930",pricechange:"0.040",changepercent:"0.818",buy:"4.920",sell:"4.930",settlement:"4.890",open:"4.850",high:"5.000",low:"4.760",volume:25987156,amount:126123705,ticktime:"15:00:01",per:35.214,pb:1.209,mktcap:429792.022356,nmc:429792.022356,turnoverratio:2.9809},{symbol:"sh600053",code:"600053",name:"九鼎投资",trade:"21.780",pricechange:"0.800",changepercent:"3.813",buy:"21.770",sell:"21.780",settlement:"20.980",open:"20.900",high:"22.210",low:"20.880",volume:3608503,amount:78495210,ticktime:"15:00:01",per:33.227,pb:4.625,mktcap:944251.8624,nmc:944251.8624,turnoverratio:0.83233},{symbol:"sh600054",code:"600054",name:"黄山旅游",trade:"8.890",pricechange:"0.010",changepercent:"0.113",buy:"8.880",sell:"8.890",settlement:"8.880",open:"8.900",high:"8.900",low:"8.850",volume:932230,amount:8268730,ticktime:"15:00:01",per:11.397,pb:1.551,mktcap:648418.32216,nmc:456323.7,turnoverratio:0.18162},{symbol:"sh600055",code:"600055",name:"万东医疗",trade:"9.270",pricechange:"-0.140",changepercent:"-1.488",buy:"9.260",sell:"9.270",settlement:"9.410",open:"9.420",high:"9.430",low:"9.200",volume:2500980,amount:23241355,ticktime:"15:00:01",per:32.641,pb:2.592,mktcap:501336.616473,nmc:501336.616473,turnoverratio:0.46245},{symbol:"sh600056",code:"600056",name:"中国医药",trade:"13.060",pricechange:"-0.010",changepercent:"-0.077",buy:"13.050",sell:"13.060",settlement:"13.070",open:"13.080",high:"13.110",low:"12.950",volume:2922782,amount:38108736,ticktime:"15:00:01",per:9.035,pb:1.608,mktcap:1395442.107404,nmc:1394949.306588,turnoverratio:0.27364},{symbol:"sh600057",code:"600057",name:"厦门象屿",trade:"4.160",pricechange:"-0.030",changepercent:"-0.716",buy:"4.160",sell:"4.170",settlement:"4.190",open:"4.190",high:"4.210",low:"4.140",volume:6258809,amount:26091683,ticktime:"15:00:01",per:9.455,pb:0.868,mktcap:897500.89936,nmc:897500.89936,turnoverratio:0.2901},{symbol:"sh600058",code:"600058",name:"五矿发展",trade:"7.730",pricechange:"0.160",changepercent:"2.114",buy:"7.730",sell:"7.740",settlement:"7.570",open:"7.570",high:"7.790",low:"7.570",volume:2246252,amount:17273035,ticktime:"15:00:01",per:-8.725,pb:2.022,mktcap:828586.979603,nmc:828586.979603,turnoverratio:0.20956},{symbol:"sh600059",code:"600059",name:"古越龙山",trade:"7.990",pricechange:"0.060",changepercent:"0.757",buy:"7.980",sell:"7.990",settlement:"7.930",open:"7.970",high:"8.000",low:"7.910",volume:1739263,amount:13824507,ticktime:"15:00:01",per:38.048,pb:1.579,mktcap:646010.807835,nmc:646010.807835,turnoverratio:0.21512},{symbol:"sh600060",code:"600060",name:"海信电器",trade:"9.780",pricechange:"0.170",changepercent:"1.769",buy:"9.780",sell:"9.790",settlement:"9.610",open:"9.650",high:"9.900",low:"9.570",volume:21239016,amount:207584132,ticktime:"15:00:01",per:32.6,pb:0.898,mktcap:1279694.635116,nmc:1279694.635116,turnoverratio:1.62318},{symbol:"sh600061",code:"600061",name:"国投资本",trade:"12.270",pricechange:"0.070",changepercent:"0.574",buy:"12.270",sell:"12.280",settlement:"12.200",open:"12.200",high:"12.340",low:"12.130",volume:4389287,amount:53774124,ticktime:"15:00:01",per:30.675,pb:1.368,mktcap:5186688.175029,nmc:5121291.773202,turnoverratio:0.10516},{symbol:"sh600062",code:"600062",name:"华润双鹤",trade:"12.400",pricechange:"-0.070",changepercent:"-0.561",buy:"12.400",sell:"12.410",settlement:"12.470",open:"12.510",high:"12.510",low:"12.290",volume:5321139,amount:65817538,ticktime:"15:00:01",per:13.356,pb:1.58,mktcap:1293614.7604,nmc:1293614.7604,turnoverratio:0.51006},{symbol:"sh600063",code:"600063",name:"皖维高新",trade:"3.450",pricechange:"0.040",changepercent:"1.173",buy:"3.440",sell:"3.450",settlement:"3.410",open:"3.430",high:"3.500",low:"3.410",volume:14108043,amount:48898483,ticktime:"15:00:01",per:49.286,pb:1.353,mktcap:664433.66874,nmc:664433.66874,turnoverratio:0.73254},{symbol:"sh600064",code:"600064",name:"南京高科",trade:"9.350",pricechange:"0.020",changepercent:"0.214",buy:"9.340",sell:"9.350",settlement:"9.330",open:"9.300",high:"9.420",low:"9.250",volume:6108265,amount:57125477,ticktime:"15:00:01",per:12.065,pb:1.03,mktcap:1155619.69028,nmc:1155619.69028,turnoverratio:0.49421},{symbol:"sh600066",code:"600066",name:"宇通客车",trade:"13.770",pricechange:"-0.310",changepercent:"-2.202",buy:"13.760",sell:"13.770",settlement:"14.080",open:"14.120",high:"14.170",low:"13.660",volume:7383493,amount:102259549,ticktime:"15:00:05",per:13.634,pb:1.997,mktcap:3048594.310071,nmc:3048594.310071,turnoverratio:0.3335},{symbol:"sh600067",code:"600067",name:"冠城大通",trade:"4.100",pricechange:"0.050",changepercent:"1.235",buy:"4.090",sell:"4.100",settlement:"4.050",open:"4.050",high:"4.140",low:"4.040",volume:1666624,amount:6846313,ticktime:"15:00:01",per:8.039,pb:0.824,mktcap:611765.39725,nmc:611765.39725,turnoverratio:0.1117},{symbol:"sh600068",code:"600068",name:"葛洲坝",trade:"5.830",pricechange:"0.020",changepercent:"0.344",buy:"5.820",sell:"5.830",settlement:"5.810",open:"5.800",high:"5.840",low:"5.800",volume:11128525,amount:64742876,ticktime:"15:00:01",per:6.573,pb:0.931,mktcap:2684585.231196,nmc:2684585.231196,turnoverratio:0.24167},{symbol:"sh600069",code:"600069",name:"银鸽投资",trade:"2.550",pricechange:"-0.030",changepercent:"-1.163",buy:"2.540",sell:"2.550",settlement:"2.580",open:"2.550",high:"2.580",low:"2.540",volume:8672720,amount:22150893,ticktime:"15:00:01",per:-46.703,pb:2.191,mktcap:414077.63022,nmc:414077.63022,turnoverratio:0.53409},{symbol:"sh600070",code:"600070",name:"浙江富润",trade:"8.440",pricechange:"0.040",changepercent:"0.476",buy:"8.440",sell:"8.450",settlement:"8.400",open:"8.450",high:"8.480",low:"8.280",volume:3670100,amount:30766369,ticktime:"15:00:01",per:20.095,pb:1.669,mktcap:440522.523592,nmc:372497.76264,turnoverratio:0.83157},{symbol:"sh600071",code:"600071",name:"凤凰光学",trade:"10.850",pricechange:"0.120",changepercent:"1.118",buy:"10.850",sell:"10.860",settlement:"10.730",open:"10.720",high:"10.850",low:"10.640",volume:1453600,amount:15613943,ticktime:"15:00:01",per:-361.667,pb:3.878,mktcap:305507.669565,nmc:257657.61476,turnoverratio:0.61211},{symbol:"sh600072",code:"600072",name:"中船科技",trade:"14.740",pricechange:"0.470",changepercent:"3.294",buy:"14.730",sell:"14.740",settlement:"14.270",open:"14.270",high:"14.760",low:"14.080",volume:24759760,amount:359979474,ticktime:"15:00:00",per:165.618,pb:2.837,mktcap:1085232.327542,nmc:885547.90698,turnoverratio:4.12128},{symbol:"sh600073",code:"600073",name:"上海梅林",trade:"8.960",pricechange:"0.090",changepercent:"1.015",buy:"8.950",sell:"8.960",settlement:"8.870",open:"8.870",high:"8.980",low:"8.780",volume:9495626,amount:84322979,ticktime:"15:00:01",per:27.152,pb:2.129,mktcap:840205.606912,nmc:840205.606912,turnoverratio:1.01262},{symbol:"sh600074",code:"600074",name:"*ST保千",trade:"1.040",pricechange:"0.000",changepercent:"0.000",buy:"0.000",sell:"0.000",settlement:"1.040",open:"0.000",high:"0.000",low:"0.000",volume:0,amount:0,ticktime:"09:00:00",per:-1.507,pb:-0.484,mktcap:253540.149096,nmc:106709.525728,turnoverratio:0},{symbol:"sh600075",code:"600075",name:"新疆天业",trade:"5.090",pricechange:"-0.100",changepercent:"-1.927",buy:"5.080",sell:"5.090",settlement:"5.190",open:"5.190",high:"5.210",low:"5.030",volume:11046050,amount:56227882,ticktime:"15:00:01",per:9.98,pb:1.041,mktcap:495013.877168,nmc:495013.877168,turnoverratio:1.13581},{symbol:"sh600076",code:"600076",name:"康欣新材",trade:"4.240",pricechange:"0.050",changepercent:"1.193",buy:"4.230",sell:"4.240",settlement:"4.190",open:"4.190",high:"4.260",low:"4.170",volume:4596228,amount:19397418,ticktime:"15:00:01",per:9.381,pb:1.101,mktcap:438527.990696,nmc:438527.990696,turnoverratio:0.4444},{symbol:"sh600077",code:"600077",name:"宋都股份",trade:"2.520",pricechange:"0.030",changepercent:"1.205",buy:"2.510",sell:"2.520",settlement:"2.490",open:"2.480",high:"2.530",low:"2.450",volume:5186531,amount:12892736,ticktime:"15:00:01",per:8.129,pb:0.842,mktcap:337710.826152,nmc:337710.826152,turnoverratio:0.38702},{symbol:"sh600078",code:"600078",name:"澄星股份",trade:"4.860",pricechange:"0.010",changepercent:"0.206",buy:"4.860",sell:"4.870",settlement:"4.850",open:"4.840",high:"4.920",low:"4.830",volume:9714936,amount:47430911,ticktime:"15:00:01",per:162,pb:1.884,mktcap:322010.410446,nmc:322010.410446,turnoverratio:1.46624},{symbol:"sh600079",code:"600079",name:"人福医药",trade:"11.980",pricechange:"-0.200",changepercent:"-1.642",buy:"11.980",sell:"11.990",settlement:"12.180",open:"12.110",high:"12.240",low:"11.820",volume:10974051,amount:131689056,ticktime:"15:00:01",per:-6.619,pb:1.729,mktcap:1621737.753796,nmc:1540686.776276,turnoverratio:0.85332},{symbol:"sh600080",code:"600080",name:"金花股份",trade:"6.230",pricechange:"-0.040",changepercent:"-0.638",buy:"6.230",sell:"6.240",settlement:"6.270",open:"6.250",high:"6.330",low:"6.180",volume:2555186,amount:16004778,ticktime:"15:00:05",per:57.9,pb:1.293,mktcap:232547.387555,nmc:190199.328256,turnoverratio:0.83695},{symbol:"sh600081",code:"600081",name:"东风科技",trade:"11.680",pricechange:"0.020",changepercent:"0.172",buy:"11.670",sell:"11.680",settlement:"11.660",open:"11.610",high:"11.940",low:"11.500",volume:6861911,amount:80509032,ticktime:"15:00:01",per:24.931,pb:2.752,mktcap:366238.08,nmc:366238.08,turnoverratio:2.18839},{symbol:"sh600082",code:"600082",name:"海泰发展",trade:"4.060",pricechange:"0.050",changepercent:"1.247",buy:"4.060",sell:"4.070",settlement:"4.010",open:"4.010",high:"4.070",low:"3.960",volume:4292732,amount:17212392,ticktime:"15:00:01",per:178.855,pb:1.53,mktcap:262323.025356,nmc:257455.148692,turnoverratio:0.67695},{symbol:"sh600083",code:"600083",name:"博信股份",trade:"19.010",pricechange:"0.220",changepercent:"1.171",buy:"18.990",sell:"19.010",settlement:"18.790",open:"18.790",high:"19.270",low:"18.720",volume:4336001,amount:82370753,ticktime:"15:00:01",per:-83.377,pb:145.894,mktcap:437230,nmc:433415.312726,turnoverratio:1.90181},{symbol:"sh600084",code:"600084",name:"*ST中葡",trade:"2.670",pricechange:"0.030",changepercent:"1.136",buy:"2.670",sell:"2.680",settlement:"2.640",open:"2.630",high:"2.700",low:"2.610",volume:7014801,amount:18701737,ticktime:"15:00:01",per:-19.085,pb:1.372,mktcap:300035.06361,nmc:300035.06361,turnoverratio:0.62424},{symbol:"sh600085",code:"600085",name:"同仁堂",trade:"26.740",pricechange:"-0.040",changepercent:"-0.149",buy:"26.740",sell:"26.750",settlement:"26.780",open:"26.720",high:"26.800",low:"26.590",volume:1956643,amount:52237805,ticktime:"15:00:05",per:32.334,pb:3.832,mktcap:3667311.480588,nmc:3667311.480588,turnoverratio:0.14267},{symbol:"sh600086",code:"600086",name:"东方金钰",trade:"2.800",pricechange:"-0.070",changepercent:"-2.439",buy:"2.800",sell:"2.810",settlement:"2.870",open:"2.820",high:"2.840",low:"2.770",volume:17520188,amount:49148488,ticktime:"15:00:01",per:-2.2,pb:1.995,mktcap:378000,nmc:295916.60448,turnoverratio:1.65778},{symbol:"sh600088",code:"600088",name:"中视传媒",trade:"13.330",pricechange:"-0.200",changepercent:"-1.478",buy:"13.320",sell:"13.330",settlement:"13.530",open:"13.450",high:"13.460",low:"13.140",volume:2604800,amount:34629267,ticktime:"15:00:05",per:46.285,pb:4.389,mktcap:530142.6312,nmc:530142.6312,turnoverratio:0.65496},{symbol:"sh600089",code:"600089",name:"特变电工",trade:"6.480",pricechange:"-0.010",changepercent:"-0.154",buy:"6.470",sell:"6.480",settlement:"6.490",open:"6.480",high:"6.510",low:"6.460",volume:6082650,amount:39423348,ticktime:"15:00:01",per:13.211,pb:0.817,mktcap:2406874.687272,nmc:2406874.687272,turnoverratio:0.16376},{symbol:"sh600090",code:"600090",name:"同济堂",trade:"4.340",pricechange:"0.020",changepercent:"0.463",buy:"4.340",sell:"4.350",settlement:"4.320",open:"4.320",high:"4.350",low:"4.290",volume:4889920,amount:21159758,ticktime:"15:00:01",per:11.73,pb:0.987,mktcap:624813.71813,nmc:624813.71813,turnoverratio:0.33966},{symbol:"sh600091",code:"600091",name:"ST明科",trade:"3.850",pricechange:"0.000",changepercent:"0.000",buy:"3.820",sell:"3.850",settlement:"3.850",open:"3.860",high:"3.880",low:"3.800",volume:874100,amount:3349436,ticktime:"15:00:01",per:385,pb:1.869,mktcap:168403.82174,nmc:168403.82174,turnoverratio:0.19983},{symbol:"sh600093",code:"600093",name:"易见股份",trade:"12.180",pricechange:"0.140",changepercent:"1.163",buy:"12.180",sell:"12.190",settlement:"12.040",open:"11.920",high:"12.500",low:"11.740",volume:27385654,amount:333759008,ticktime:"15:00:05",per:16.685,pb:1.812,mktcap:1367141.055,nmc:1367141.055,turnoverratio:2.43982},{symbol:"sh600094",code:"600094",name:"大名城",trade:"6.690",pricechange:"-0.060",changepercent:"-0.889",buy:"6.680",sell:"6.690",settlement:"6.750",open:"6.750",high:"6.780",low:"6.630",volume:63563870,amount:425149378,ticktime:"15:00:01",per:30.067,pb:1.344,mktcap:1655992.463133,nmc:1523048.719578,turnoverratio:2.79205},{symbol:"sh600095",code:"600095",name:"哈高科",trade:"8.370",pricechange:"0.060",changepercent:"0.722",buy:"8.370",sell:"8.380",settlement:"8.310",open:"8.270",high:"8.510",low:"8.210",volume:16055754,amount:134487649,ticktime:"15:00:01",per:199.761,pb:3.6,mktcap:302377.603905,nmc:302377.603905,turnoverratio:4.44433},{symbol:"sh600096",code:"600096",name:"云天化",trade:"5.350",pricechange:"-0.150",changepercent:"-2.727",buy:"5.350",sell:"5.360",settlement:"5.500",open:"5.410",high:"5.460",low:"5.290",volume:20697646,amount:111339962,ticktime:"15:00:01",per:57.589,pb:1.599,mktcap:763806.09183,nmc:706937.83883,turnoverratio:1.56637},{symbol:"sh600097",code:"600097",name:"开创国际",trade:"9.810",pricechange:"-0.040",changepercent:"-0.406",buy:"9.790",sell:"9.810",settlement:"9.850",open:"9.700",high:"9.920",low:"9.660",volume:538800,amount:5268752,ticktime:"15:00:01",per:16.914,pb:1.469,mktcap:236358.764379,nmc:221973.845373,turnoverratio:0.23812},{symbol:"sh600098",code:"600098",name:"广州发展",trade:"6.520",pricechange:"0.040",changepercent:"0.617",buy:"6.520",sell:"6.530",settlement:"6.480",open:"6.450",high:"6.520",low:"6.370",volume:2253192,amount:14510816,ticktime:"15:00:01",per:25.36,pb:1.069,mktcap:1777480.155816,nmc:1777480.155816,turnoverratio:0.08265},{symbol:"sh600099",code:"600099",name:"林海股份",trade:"6.900",pricechange:"0.040",changepercent:"0.583",buy:"6.900",sell:"6.910",settlement:"6.860",open:"6.860",high:"6.950",low:"6.810",volume:1315900,amount:9084646,ticktime:"15:00:01",per:570.248,pb:3.194,mktcap:151192.8,nmc:151192.8,turnoverratio:0.60054},{symbol:"sh600100",code:"600100",name:"同方股份",trade:"8.020",pricechange:"0.050",changepercent:"0.627",buy:"8.010",sell:"8.020",settlement:"7.970",open:"8.000",high:"8.030",low:"7.940",volume:8751521,amount:69933011,ticktime:"15:00:05",per:-6.127,pb:1.457,mktcap:2377046.958702,nmc:2377046.958702,turnoverratio:0.29527},{symbol:"sh600101",code:"600101",name:"明星电力",trade:"6.180",pricechange:"-0.020",changepercent:"-0.323",buy:"6.180",sell:"6.190",settlement:"6.200",open:"6.200",high:"6.210",low:"6.160",volume:846320,amount:5229135,ticktime:"15:00:01",per:19.935,pb:0.874,mktcap:260445.39006,nmc:260445.39006,turnoverratio:0.20082},{symbol:"sh600103",code:"600103",name:"青山纸业",trade:"2.040",pricechange:"-0.020",changepercent:"-0.971",buy:"2.040",sell:"2.050",settlement:"2.060",open:"2.050",high:"2.060",low:"2.030",volume:5955724,amount:12156825,ticktime:"15:00:05",per:23.368,pb:1.326,mktcap:470386.832628,nmc:470386.832628,turnoverratio:0.25829},{symbol:"sh600104",code:"600104",name:"上汽集团",trade:"23.190",pricechange:"-0.010",changepercent:"-0.043",buy:"23.190",sell:"23.200",settlement:"23.200",open:"23.280",high:"23.360",low:"23.130",volume:9182123,amount:213154346,ticktime:"15:00:01",per:7.524,pb:1.142,mktcap:27093946.905435,nmc:26676460.795383,turnoverratio:0.07982},{symbol:"sh600105",code:"600105",name:"永鼎股份",trade:"4.000",pricechange:"-0.010",changepercent:"-0.249",buy:"4.000",sell:"4.010",settlement:"4.010",open:"4.000",high:"4.040",low:"3.960",volume:8660327,amount:34636477,ticktime:"15:00:01",per:25,pb:1.792,mktcap:498245.068,nmc:495309.928,turnoverratio:0.69939},{symbol:"sh600106",code:"600106",name:"重庆路桥",trade:"3.010",pricechange:"0.030",changepercent:"1.007",buy:"3.000",sell:"3.010",settlement:"2.980",open:"2.990",high:"3.010",low:"2.980",volume:3118694,amount:9343916,ticktime:"15:00:01",per:15.05,pb:0.995,mktcap:363669.585202,nmc:363669.585202,turnoverratio:0.25813},{symbol:"sh600107",code:"600107",name:"美尔雅",trade:"7.110",pricechange:"-0.010",changepercent:"-0.140",buy:"7.110",sell:"7.120",settlement:"7.120",open:"7.120",high:"7.140",low:"7.020",volume:2518490,amount:17809415,ticktime:"15:00:01",per:297.49,pb:4.185,mktcap:255960,nmc:255960,turnoverratio:0.69958},{symbol:"sh600108",code:"600108",name:"亚盛集团",trade:"2.980",pricechange:"0.000",changepercent:"0.000",buy:"2.970",sell:"2.980",settlement:"2.980",open:"2.980",high:"3.010",low:"2.960",volume:7606931,amount:22702199,ticktime:"15:00:01",per:68.506,pb:1.198,mktcap:580180.706058,nmc:580180.706058,turnoverratio:0.39072},{symbol:"sh600109",code:"600109",name:"国金证券",trade:"8.580",pricechange:"0.030",changepercent:"0.351",buy:"8.580",sell:"8.590",settlement:"8.550",open:"8.590",high:"8.660",low:"8.540",volume:9877413,amount:84895583,ticktime:"15:00:01",per:25.689,pb:1.292,mktcap:2594900.28798,nmc:2594900.28798,turnoverratio:0.3266},{symbol:"sh600110",code:"600110",name:"诺德股份",trade:"4.110",pricechange:"0.000",changepercent:"0.000",buy:"4.110",sell:"4.120",settlement:"4.110",open:"4.110",high:"4.140",low:"4.100",volume:5674700,amount:23364336,ticktime:"15:00:01",per:48.639,pb:2.17,mktcap:472778.271867,nmc:472778.271867,turnoverratio:0.49332},{symbol:"sh600111",code:"600111",name:"北方稀土",trade:"10.070",pricechange:"-0.040",changepercent:"-0.396",buy:"10.070",sell:"10.080",settlement:"10.110",open:"10.050",high:"10.160",low:"10.050",volume:11918297,amount:120231476,ticktime:"15:00:01",per:62.663,pb:3.909,mktcap:3658497.462,nmc:3658497.462,turnoverratio:0.32805},{symbol:"sh600112",code:"600112",name:"ST天成",trade:"2.260",pricechange:"-0.020",changepercent:"-0.877",buy:"2.250",sell:"2.260",settlement:"2.280",open:"2.280",high:"2.300",low:"2.250",volume:1790719,amount:4070672,ticktime:"15:00:01",per:67.062,pb:1.005,mktcap:115080.295196,nmc:115080.295196,turnoverratio:0.35167},{symbol:"sh600113",code:"600113",name:"浙江东日",trade:"7.330",pricechange:"0.070",changepercent:"0.964",buy:"7.330",sell:"7.340",settlement:"7.260",open:"7.240",high:"7.330",low:"7.210",volume:3463646,amount:25215468,ticktime:"15:00:05",per:22.212,pb:2.142,mktcap:301579.04028,nmc:301579.04028,turnoverratio:0.84185},{symbol:"sh600114",code:"600114",name:"东睦股份",trade:"6.400",pricechange:"-0.020",changepercent:"-0.312",buy:"6.400",sell:"6.420",settlement:"6.420",open:"6.420",high:"6.490",low:"6.290",volume:4808864,amount:30655036,ticktime:"15:00:01",per:12.549,pb:1.713,mktcap:413149.36384,nmc:409072.61504,turnoverratio:0.75235},{symbol:"sh600115",code:"600115",name:"东方航空",trade:"5.180",pricechange:"-0.020",changepercent:"-0.385",buy:"5.180",sell:"5.190",settlement:"5.200",open:"5.190",high:"5.220",low:"5.150",volume:16801211,amount:87053862,ticktime:"15:00:01",per:27.656,pb:1.338,mktcap:8484585.767154,nmc:5080795.583276,turnoverratio:0.17129},{symbol:"sh600116",code:"600116",name:"三峡水利",trade:"7.510",pricechange:"-0.040",changepercent:"-0.530",buy:"7.510",sell:"7.520",settlement:"7.550",open:"7.540",high:"7.650",low:"7.470",volume:4308796,amount:32514797,ticktime:"15:00:05",per:34.136,pb:2.605,mktcap:745747.132002,nmc:745747.132002,turnoverratio:0.43391},{symbol:"sh600117",code:"600117",name:"西宁特钢",trade:"3.320",pricechange:"-0.010",changepercent:"-0.300",buy:"3.320",sell:"3.330",settlement:"3.330",open:"3.330",high:"3.340",low:"3.290",volume:2362015,amount:7827469,ticktime:"15:00:05",per:-1.694,pb:2.98,mktcap:346979.259664,nmc:246084.791664,turnoverratio:0.31867},{symbol:"sh600118",code:"600118",name:"中国卫星",trade:"21.180",pricechange:"-0.030",changepercent:"-0.141",buy:"21.170",sell:"21.180",settlement:"21.210",open:"21.160",high:"21.200",low:"20.910",volume:3070220,amount:64705291,ticktime:"15:00:01",per:60.514,pb:4.543,mktcap:2504511.98793,nmc:2504511.98793,turnoverratio:0.25964},{symbol:"sh600119",code:"600119",name:"*ST长投",trade:"5.470",pricechange:"-0.120",changepercent:"-2.147",buy:"5.470",sell:"5.480",settlement:"5.590",open:"5.600",high:"5.650",low:"5.420",volume:4209700,amount:23265317,ticktime:"15:00:05",per:-2.498,pb:16.779,mktcap:168147.8,nmc:168147.8,turnoverratio:1.36945},{symbol:"sh600120",code:"600120",name:"浙江东方",trade:"8.110",pricechange:"0.120",changepercent:"1.502",buy:"8.110",sell:"8.120",settlement:"7.990",open:"8.030",high:"8.270",low:"7.960",volume:5015010,amount:40670476,ticktime:"15:00:01",per:10.138,pb:0.955,mktcap:1290614.31363,nmc:981736.947706,turnoverratio:0.41428},{symbol:"sh600121",code:"600121",name:"郑州煤电",trade:"2.380",pricechange:"0.010",changepercent:"0.422",buy:"2.380",sell:"2.390",settlement:"2.370",open:"2.360",high:"2.390",low:"2.350",volume:1815640,amount:4300442,ticktime:"15:00:05",per:15.846,pb:0.69,mktcap:289982.065044,nmc:289982.065044,turnoverratio:0.14902}]
View Code

 

2、解析代码

1         url = "http://vip.stock.finance.sina.com.cn/quotes_service/api/json_v2.php/Market_Center.getHQNodeData?" \
2               "page=1&num=100&sort=symbol&asc=1&node=" + self + "&symbol=&_s_r_a=init"
3         result = requests.get(url).text
4         print(result)
5 
6         result = demjson.decode(result)
7         print(result[0]["name"])

 

3、输出

 

posted @ 2019-10-25 00:20  淡怀  阅读(3869)  评论(0编辑  收藏  举报