This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'mbrzustowicz' | |
# metadata.json has single quotes like this | |
# {'asin': 'B00M0AEPXG', 'imUrl': 'http://ecx.images-amazon.com/images/I/51hcXTUeHLL._BO2,204,203,200_ ..... } | |
# so the strategy is to read each line as a string, and dump into a REAL json file | |
import json | |
import ast | |
fr=open("/Users/mbrzustowicz/Downloads/metadata.json") |