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".
Post a Comment for "Python Error: AttributeError: 'str' Object Has No Attribute 'read'"