Replace "\n"
with n
in Python scripts
This commit is contained in:
@@ -19,7 +19,7 @@ for channelId in list(os.walk('.'))[1]:
|
||||
filePath = f'{channelId}/requests/{str(numberOfRequests - 1)}.json'
|
||||
with open(filePath) as f:
|
||||
print(filePath)
|
||||
#content = "\n".join(f.read().splitlines()[1:])
|
||||
#content = '\n'.join(f.read().splitlines()[1:])
|
||||
data = json.load(f)#json.loads(content)
|
||||
snippet = data['items'][-1]['snippet']
|
||||
if 'topLevelComment' in snippet:
|
||||
|
Reference in New Issue
Block a user