Skip to content

Less elegant but working API query

Latest

Choose a tag to compare

@foo-git foo-git released this 25 Feb 20:48
· 3 commits to master since this release
e6568fc

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.

Fixes #14 and #17.