Update to access the JSON data directly
Can we get a function that can give access to the JustWatch JSON data directly? From what I can tell, this would be almost the exact same code as is in the search() function. But instead of it returning parse_search_response(response.json()) it would just return response.json(). So perhaps search() can be refactored to use an optional boolean parameter that returns the JSON . Or perhaps a new function can be implemented which returns the JSON . And search() can be refactored to use this new function.
My reason for wanting access to the JSON directly is that I want to insert the JSON into a SQLite database and query it using SQLite's JSON functions. ~~Without this functionality, I have to serialize the JSON myself. And I can do that. But it doesn't seem like there should be a need for that if the JSON is already available in the Response object that's used within the search() function~~
I'm happy to help implement this feature if there's interest.
Thanks for your time.
EDIT: I was able to get chatgpt to write code to convert the Offer objects to Python dictionaries. And I was able to convert that to json and dump it into my database. But I still think that this would be a useful feature.