0
Je suis en train de lire un fichier JSON de tweets, mais je continue à obtenir cette erreurPython json.loads montre ValueError: Attendons, delimiter: ligne 1
ValueError: Attendons, delimiter: ligne 1 colonne 537 (char 536)
Code:
import json
import pandas as pd
import matplotlib.pyplot as plt
import json
with open('/Users/Mustafa/desktop/tweets.json', 'r') as f:
line = f.readline() # read only the first tweet/line
tweet = json.loads(line) # load it as Python dict
print(json.dumps(tweet, indent=4)) # pretty-print
aucune idée de comment je peux résoudre ce problème ou quoi im faire mal?