The API, which yielded all the discounts with only one query, seems to be not working anymore (Error 500 using Firefox in manual browsing mode). Luckily, a contributor found another API query which yields the product IDs, and another query to get the respective details like pricing and names. It's not as fast as before, but at least it works.
Also, the cloudscraper version pinning is not relevant anymore.
Right now, the script tries to access the "old" API and falls back to the "new" API. The output file in that case looks different, as the category names are different in the API result.