def METHOD_NAME(self):
    # dataset http://open.canada.ca/data/en/dataset/c4c5c7f1-bfa6-4ff6-b4a0-c164cb2060f7
    ds = self.site.action.package_show(id='c4c5c7f1-bfa6-4ff6-b4a0-c164cb2060f7')
    url = None
    for res in ds['resources']:
        if res['url'][-3:] == '.gz':
            url = res['url']
            break
    assert(url)
    r = requests.get(url, stream=True)
    zf = StringIO.StringIO(r.content)
    records = []
    try:
        with gzip.GzipFile(fileobj=zf, mode='rb') as fd:
            for line in fd:
                records.append(json.loads(line.decode('utf-8')))
                if len(records) >= 50:
                    yield (records)
                    records = []
        if len(records) >0:
            yield (records)
    except GeneratorExit:
        pass
    except:
        import traceback
        traceback.print_exc()
        print('error reading downloaded file')