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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -