python - Untar a file and find the links(short/full) in the text -
i working on tar file, 100 mb file. need see links in text , find comments/likes/shares links. untar file , save json using python, on converting csv using
import csv, json, sys input = open(input.json) data = json.load(input) input.close() output = csv.writer(output.csv) output.writerow(data[0].keys()) row in data: output.writerow(row.values())
i left 1kb file there way without converting json? or using r?
Comments
Post a Comment