Replace "\n" with n in Python scripts

This commit is contained in:
2023-07-28 14:52:41 +02:00
parent b60bb22112
commit 5185bcb6a7
2 changed files with 2 additions and 2 deletions

View File

@@ -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: