Calling the call dunder function no longer returns an instance of a SearchResponse class, but a plain Python dictionary. This Python dictionary contains not only the data about Cultural Heritage Objects, but also metadata about the API call such as the API key, request number, total number of items discovered by the query etc. The data about Cultural Heritage Objects resides under the "items" key. To turn that dictionary into a dataframe that contains only CHO data, we need to utilize the 'resp2df' function provided until utils.py.
In line with the recent changes, the example should be changed as follows:
@joseed-europeana I suggest that this issue stays open even after we fix this specific problem. We also have to update all similar examples found scattered throughout different notebooks.
The following code snipped found in the 'Usage' section of the project's README file no longer works as of yesterday.
Calling the call dunder function no longer returns an instance of a SearchResponse class, but a plain Python dictionary. This Python dictionary contains not only the data about Cultural Heritage Objects, but also metadata about the API call such as the API key, request number, total number of items discovered by the query etc. The data about Cultural Heritage Objects resides under the "items" key. To turn that dictionary into a dataframe that contains only CHO data, we need to utilize the 'resp2df' function provided until utils.py.
In line with the recent changes, the example should be changed as follows:
@joseed-europeana I suggest that this issue stays open even after we fix this specific problem. We also have to update all similar examples found scattered throughout different notebooks.