{ "data" : [ { "type" : "dir" , "name" : "anim" , "size" : 282474144 , "data" : [ { "type" : "file" , "name" : "anim.img" , "date_change" : 1688437080 , "size" : 10944512 , "hash" : "8dc24a1605cbff6c9aa73818004027d0" } , { "type" : "file" , "name" : "cuts.img" , "date_change" : 1688437100 , "size" : 270096384 , "hash" : "2afcb246fe97406b47f4c59deaf5b716" } , { "type" : "file" , "name" : "ped.ifp" , "date_change" : 1688437080 , "size" : 1433248 , "hash" : "4736b2c90b00981255f9507308ee9174" } ] } ,
import json with open ( 'game.json' , 'r' ) as fcc_file : fcc_data = json . load ( fcc_file ) d = json . loads ( json . dumps ( fcc_data , indent = 4 , sort_keys = True ) ) for data in d [ 'data' ] [ 'data' ] : for name in data [ 'name' ] : print ( name [ 'name' ] )
import json with open ( 'game.json' , 'r' ) as fcc_file : fcc_data = json . load ( fcc_file ) for data in fcc_data [ 'data' ] [ 0 ] [ 'data' ] : name = data [ 'name' ] print ( f"https://pc.rod-ins.com/release/{name}" ) ### RESULT ### # https://pc.rod-ins.com/release/anim.img # https://pc.rod-ins.com/release/cuts.img # https://pc.rod-ins.com/release/ped.ifp