简体   繁体   中英

Difficulty reading Multiple Tweet JSON file in python(attaching the link of the file)

Please download the file from the given link, the link contain the json file which I am unable to read

I tried the below code but it is not working:

import json

with open('G:/analytics/ISB CBA/Residency/Residency1&2/B9MPRACT/data/python.json','r') as f:
    for line in f:
        tweet = json.loads(line)
        print("hello")

I know many solution and problems are there in StackOverflow but I have not found any solution to the problem I m facing while reading this json file. Any response would be appreciable.

Check if this works: pip install simplejson

import simplejson as json
with open('E:/Studies/ISB/python.json','r') as f:
for line in f:
tweet = json.loads(line)
print tweet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM