mirror of
https://github.com/MeexReay/thinkpad-parse.git
synced 2025-06-24 10:33:01 +03:00
11 lines
208 B
Python
11 lines
208 B
Python
import json
|
|
|
|
hash = input("hash > ")
|
|
|
|
for item in open("thinkpads.txt", "r").readlines():
|
|
item = json.loads(item)
|
|
|
|
if item["hash"] == hash:
|
|
print(json.dumps(item, indent=2))
|
|
|
|
break |