mra1385 / EIA-python

Python Wrapper for the Energy Information Administration (EIA) API
55 stars 13 forks source link

Retrieve by Time Series Not Wokring #7

Open gmcgough opened 2 years ago

gmcgough commented 2 years ago

Getting KeyError: 'series' on series search function.

Data_by_series for x in search.json()['series'][0]['data']]

image

ricgu8086 commented 2 years ago

Same issue here. It seemst that EIA has changed the API

ricgu8086 commented 1 year ago

@gmcgough the code is actually working, if you copy the apy.py file and include it to your project it will work. The issue is that the latest changes were not correctly published, but the issue is fixed as I pointed out in this new issue: https://github.com/mra1385/EIA-python/issues/8