nhcb / entsog-py

Python client for the ENTSOG API
MIT License
18 stars 4 forks source link

failed to find the url #17

Open wilson13349315 opened 3 months ago

wilson13349315 commented 3 months ago

raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://transparency.entsog.eu/api/v1/operationaldatas?limit=10000&timeZone=UCT&from=2024-05-27&to=2024-05-28&periodType=day&offset=10000&indicator=Physical+Flow

I assuem the error was caused by "offset=10000" statement

brunosanches commented 2 months ago

I created this PR (#18) to address this issue. I will wait for the developers to review it.

EPRINC-MP commented 1 month ago

Greetings,

The last time that entsog-py worked correctly for me was in April.

Currently, when I try to load data (having built the following URL): https://transparency.entsog.eu/api/v1/operationaldatas?limit=10000&timeZone=UCT&from=2024-04-19&to=2024-04-20&periodType=day&offset=10000&indicator=Renomination,Physical+Flow

It produces the following error: equests.exceptions.HTTPError: 404 Client Error: Not Found for url:

Thank you.

wilson13349315 commented 1 month ago

Hi mate, you could get the correct data by removing "offset=10000", which has been out of date after the recent release from ENTSOG API. Hope this helps.

nhcb commented 1 month ago

Issued a new release of the package, but I don't think it can be pushed anymore through actions. I haven't tested it myself as I don't really maintain this anymore, sorry for this.

@brunosanches feel free to fork and maintain if you want.

EPRINC-MP commented 1 month ago

So, version 1.0.4 isn't as yet available?

EPRINC-MP commented 1 month ago

Sorry, I found the source code, loaded it via pip.

However, it still shows version 1.0.4.

But it works!

Thanks.