{"id":16319481,"url":"https://github.com/foo-git/rewe-discounts","last_synced_at":"2025-09-04T15:32:57.668Z","repository":{"id":48870488,"uuid":"266783774","full_name":"foo-git/rewe-discounts","owner":"foo-git","description":"Grabs current REWE discounts and saves them in a markdown file || Holt sich aktuelle REWE-Angebote und exportiert sie in eine Markdown-Liste","archived":false,"fork":false,"pushed_at":"2024-06-28T18:16:03.000Z","size":42,"stargazers_count":94,"open_issues_count":3,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-24T09:07:41.288Z","etag":null,"topics":["api","crawler","python","rewe"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foo-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-25T13:16:39.000Z","updated_at":"2024-12-10T21:17:17.000Z","dependencies_parsed_at":"2024-02-25T21:28:17.900Z","dependency_job_id":"2420b99f-1f2a-43b9-847b-61782a181756","html_url":"https://github.com/foo-git/rewe-discounts","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo-git%2Frewe-discounts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo-git%2Frewe-discounts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo-git%2Frewe-discounts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo-git%2Frewe-discounts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foo-git","download_url":"https://codeload.github.com/foo-git/rewe-discounts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231971066,"owners_count":18453936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","crawler","python","rewe"],"created_at":"2024-10-10T22:27:07.195Z","updated_at":"2024-12-31T10:10:04.277Z","avatar_url":"https://github.com/foo-git.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewe Discounts\n\n---\n**Warning: The script is no longer working due to breaking Rewe API changes**\nFor details, see [#19](https://github.com/foo-git/rewe-discounts/issues/19) (apparently you need some certificate and private key from the Rewe app).\n\nThe current working Python fork is from [torbenpfohl](https://github.com/torbenpfohl/rewe-discounts), but check out also the Go version from [ByteSizedMarius](https://github.com/ByteSizedMarius/rewerse-engineering).\n\nRight now, I'm not planning on rewriting this program. It was nice while it lasted. I'll keep this repository open to provide issue tracking/discussions, but I guess I'm gonna pass the torch to another contributor.\n\n---\n\n# Beschreibung\n\nDieses Programm sucht mittels der Rewe-API für einen bestimmten Rewe-Markt die aktuellen\nAngebote und schreibt eine Markdown-formatierte Übersichtsliste heraus.\n\nZur besseren Preisvergleichbarkeit wird der Preis pro Referenzmenge\n(z.B. 100 g oder 100 ml) mit ausgegeben. \n\nAnwendungsbeispiel:\n* Sonntags lädt der Server (z.B. Raspberry Pi/Debian) per cron-Job die\nneuen Angebote herunter, und speichert sie als Notiz in einer Nextcloud-Instanz\nzum komfortablen Abruf per Smartphone.\n\n## Abhängigkeiten (Dependencies)\nDie einzige externe Abhängigkeit ist zur Abfrage der Rewe API nötig, und damit Cloudflare die Anfrage durchlässt:\n- `$ pip install cloudscraper`\n\n## Verwendung (Usage)\n\n* Aktuelles Release [herunterladen](https://github.com/foo-git/rewe-discounts/releases) bzw. Master-Branch klonen.\n* `python3 ./rewe_discounts/rewe_discounts.py` ausführen und Hilfetext durchlesen.\n    * Mit `rewe_discounts.py --list-markets PLZ` lässt sich für eine beliebige Postleitzahl (PLZ) eine Marktliste inklusive der Market ID ausgeben lassen.\n    * Wähle einen Markt und kopiere die ID, z.B. \"562286\".\n    * Durch `rewe_discounts.py --market-id 562286 --output-file \"Angebote Rewe.md\"` werden die Angebote des Markets in eine Datei geschrieben. \n\nEin Ausschnitt von `Angebote Rewe.md` sieht beispielsweise so aus:\n```\n# Kochen \u0026 Backen\nGültig diese Woche bis Samstag, 30.05.2020\n\n**Barilla Pasta**\n- 0.79, 1 kg = 1.58\n- versch. Ausformungen, je 500-g-Pckg.\n\n**Knorr Grillsauce**\n- 0.65, 100 ml = 0.26\n- versch. Sorten, je 250-ml-Fl.\n\n**Erasco Eintopf**\n- 1.49, 1 kg = 1.86\n- versch. Sorten, je 800-g-Dose\n\n**Mondamin Milchreis im Becher**\n- 0.79, 100 g = 1.36\n- je 58-g-Becher\n```\n\nEs lassen sich bestimmte Produkte auch hervorheben und an erster Stelle der Datei platzieren.\nHierzu wird noch eine Textdatei angelegt, und pro Zeile ein Suchbegriff wie \"Nudeln\" oder \"Joghurt\" eingegeben:\n\n`rewe_discounts.py --market-id 562286 --output-file \"Angebote Rewe.md\" --highlights=highlights.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo-git%2Frewe-discounts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoo-git%2Frewe-discounts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo-git%2Frewe-discounts/lists"}