libicu-dev (PyICU dependency)
brew uninstall --ignore-dependencies icu4c
brew install pkg-config icu4c # keg-only
brew uninstall --ignore-dependencies icu4c
brew install pkg-config icu4c # keg-only
from __future__ import print_function | |
import boto3 | |
import urllib | |
import os | |
import psycopg2 | |
print('Loading function') | |
s3_client = boto3.client('s3') | |
s3_object = boto3.resource('s3') |
__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") |