Python Error: Attributeerror: 'str' Object Has No Attribute 'read'
My full code: import requests as req import json Bin = int(300000) BinMax = int(600000) File = open('C:/Users/admin/Desktop/PS Now Generaetors/Bins.txt', 'a') while bin != BinMax:
Solution 1:
You have to use
json.loads(json2)
instead of "load".
See more https://www.w3schools.com/python/python_json.asp
Post a Comment for "Python Error: Attributeerror: 'str' Object Has No Attribute 'read'"