123456789101112131415161718192021222324 |
- #!/usr/bin/python3
- # GPL v3 or later
- # see COPYING.GPL
- import json
- # obviously replace my file with yours
- json_file="/home/themusicgod1/Downloads/niu/out1.json"
- json_data=open(json_file)
- data = json.load(json_data)
- x=data.popitem()
- x=data.popitem()
- for b in range(2,2099):
- if ((type(x[1][b].get("object"))==type('str'))):
- print( x[1][b].get("object") + " RT")
- else:
- print (x[1][b].get("object").get("url") + " " + x[1][b].get("object").get("content"));
-
|