www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#pip install pandas
#pip install openpyxl
#
#
#
#http://192.168.145.37:8090/nationExchangeLogController/uploadlogDetailList.do?order=asc&limit=130000&offset=0&startTime=2021-01-01&endTime=2021-04-30&agId=6718&level=20&levelType=1&serviceType=1&reportBillType=3&uploadStaus=0&headNo=&failReason=&_=1669099702149
#
#
#

import json
import time
import pandas
import datetime


#db
import pymssql

#with open('fuyang.txt', 'rb',encoding="utf-8") as f:
with open('do.json', 'r') as f:
#with open('xcv.txt', 'rb') as f:
    try:
        data = json.load(f)
        #print(data)
        #print(type(data))
        #print(len(data))
        #for i in int(range(data)):
        #    print(data[i])
        
        for i in data:
            print(i)
            print(i.keys())
            print(i['NetworkSettings'])
            print(type(i['NetworkSettings']))

            print(i['NetworkSettings'].keys())

            print(i['NetworkSettings']['Networks'])
            #print(i['Args'])
            #print(type(i['Args']))
            #for ix in i['Args']:
            #    print(ix)
            #print(i['auditTime'])
            time.sleep(6)
            
    except Exception as err:
        print(err)




    
    
'''
print(dataOutput.keys())
#print(len(dataOutput["vaccNum"]))
for i in dataOutput.keys():
    #print(i)
    #print(len(dataOutput(str(i))))

    print(len(dataOutputs[i]))

#print(dataOutput)
print("正在写入Excel")


currentTime = datetime.datetime.now()
dataForm = pandas.DataFrame(dataOutput)
dataForm.to_excel("结果合肥2022" + currentTime.strftime("%Y%m%d") + '.xlsx')
print("写入完成")
'''

 

posted on 2022-12-06 14:27  秦瑞It行程实录  阅读(35)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui