def crawl(context):
    path = context.fetch_resource('source.json', context.dataset.data.url)
    context.export_resource(path, JSON, title=context.SOURCE_TITLE)
    with open(path, 'r') as file:
        data = json.load(file)
        for result in data.get('results'):
            parse_result(context, result)
def crawl(context):
    path = context.fetch_resource('source.json', context.dataset.data.url)
    context.export_resource(path, JSON, title=context.SOURCE_TITLE)
    with open(path, 'r') as file:
        data = json.load(file)
        for result in data.get('results'):
            parse_result(context, result)