Releases: foo-git/rewe-discounts
Less elegant but working API query
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.
Improved error messages
The only change in this release is an improvement of displaying error messages and tracebacks due to hunting the 403 bug, see #14. It does not change the program output. Upgrading is therefore not necessary. However, it makes debugging easier for me in the future.
Also, it looks like pinning the dependency cloudscraper
to version 1.2.69 fixes the 403 bug, see #14.
Update API for postal codes/market ID retrieval
This release fixes an upstream API change which broke the market ID retrieval, see #10.
Discount retrieval with already known market IDs was not affected.
Upstream API change
The previous Rewe API url seems to be broken (see #8), so this release uses a new Rewe API url, but the underlying data structure is different. This results in a somewhat different Markdown output.
Bugfix release
Apparently REWE market IDs with seven digits exist, and therefore the internal limit of six digits had to be incremented. Props to @oliverwehrens for the contribution.
This makes the script usable in certain PLZ/postal code regios where REWE markets have 7-digit IDs. Other regions are not affected.
Bugfix release
Highlights file was not parsed correctly when having blank lines.
No more webscraping
Merge pull request #3 from foo-git/api Api
Initial webscraping release
v1.0 More documentation