From 7948de8ebc401af4791cdd66fd928daac58d749e Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Thu, 1 Aug 2024 02:30:41 +0200 Subject: [PATCH] [enh] add examples and fix postprocessor [mod] remove not needed functions [enh] about project --- .gitignore | 2 +- LICENSE | 674 ++++++++++++++++++++++ README.md | 20 +- data/discounted_to_json-2024-08-01.json | 1 + data/discounted_to_sql-2024-08-01.sqlite3 | Bin 0 -> 49152 bytes data/my_basket.sqlite3 | Bin 0 -> 16384 bytes data/newest_products_to_sql.sqlite3 | Bin 0 -> 45056 bytes requirements.txt | 3 +- rewe_dl/config.json | 4 +- rewe_dl/examples/discounted_to_json.py | 18 +- rewe_dl/examples/discounted_to_sql.py | 4 +- rewe_dl/examples/raw_responses_to_json.py | 47 ++ rewe_dl/postprocessor/metadata.py | 26 +- rewe_dl/postprocessor/output.py | 1 + rewe_dl/utils.py | 90 +-- 15 files changed, 770 insertions(+), 120 deletions(-) create mode 100644 LICENSE create mode 100644 data/discounted_to_json-2024-08-01.json create mode 100644 data/discounted_to_sql-2024-08-01.sqlite3 create mode 100644 data/my_basket.sqlite3 create mode 100644 data/newest_products_to_sql.sqlite3 create mode 100644 rewe_dl/examples/raw_responses_to_json.py diff --git a/.gitignore b/.gitignore index 8e7cbb1..f13497f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ ### Custom ### # Ignore the entire "data/" directory -data/ +# data/ # Allow specific files within the "data/" directory !data/my_basket.sqlite3 !data/rewe-dl-jsonpp-*.json diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e62ec04 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ +GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<https://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<https://www.gnu.org/licenses/why-not-lgpl.html>. diff --git a/README.md b/README.md index ec22547..84f4cfc 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ Python library to call the APIs that the store itself calls. To get good parsed results from those API calls see `parser.py`. - - - +[](https://github.com/allendema/rewe_dl/main/pyproject.toml) +[](https://github.com/astral-sh/ruff) +[](https://github.com/allendema/rewe_dl/issues) +[](https://github.com/allendema/rewe_dl/commits/main) ## Usage ```bash @@ -39,18 +40,7 @@ You can: <details> <summary>examples/discounted_to_sql.py</summary> - ```python - def main(): - discounted_products = STORE().get_discounted_products() - - all_products = Parser().parse_search_results_products(discounted_products) - - this_file = Path(__file__).stem - todays_date = datetime.today().strftime("%Y-%m-%d") - - file_name = f"{this_file}-{todays_date}.sqlite3" - - SqlPP.save_to_sql(all_products, file_name) + ```python ``` </details> diff --git a/data/discounted_to_json-2024-08-01.json b/data/discounted_to_json-2024-08-01.json new file mode 100644 index 0000000..c91f5b6 --- /dev/null +++ b/data/discounted_to_json-2024-08-01.json @@ -0,0 +1 @@ +[{"store": "rewe.de", "product": "Cherry Romatomaten 250g", "link": "https://rewe.de/produkte/1033906", "product_id": "1033906", "price": 0.79, "old_price": 0.85, "saved": 0.06, "brand": "REWE", "picture": "https://img.rewe-static.de/1033906/23292477_digital-image.png"}, {"store": "rewe.de", "product": "Arla Bio Frische Weidemilch 1,5% 1l", "link": "https://rewe.de/produkte/2058071", "product_id": "2058071", "price": 1.29, "old_price": 1.59, "saved": 0.3, "brand": "Arla", "picture": "https://img.rewe-static.de/2058071/40601585_digital-image.png"}, {"store": "rewe.de", "product": "Jack Daniel's Tennessee Whiskey 0,7l", "link": "https://rewe.de/produkte/4676050", "product_id": "4676050", "price": 15.49, "old_price": 19.99, "saved": 4.5, "brand": "Jack Daniel's", "picture": "https://img.rewe-static.de/4676050/41937676_digital-image.png"}, {"store": "rewe.de", "product": "Lauchzwiebeln im Bund", "link": "https://rewe.de/produkte/482404", "product_id": "482404", "price": 0.49, "old_price": 0.75, "saved": 0.26, "brand": "", "picture": "https://img.rewe-static.de/0482404/31686352_digital-image.png"}, {"store": "rewe.de", "product": "Arla Bio Frische Weidemilch 3,8% 1l", "link": "https://rewe.de/produkte/2058036", "product_id": "2058036", "price": 1.29, "old_price": 1.69, "saved": 0.4, "brand": "Arla", "picture": "https://img.rewe-static.de/2058036/40601561_digital-image.png"}, {"store": "rewe.de", "product": "Jack Daniel's Whiskey & Lynchburg Lemonade 0,33l", "link": "https://rewe.de/produkte/3236518", "product_id": "3236518", "price": 2.0, "old_price": 2.99, "saved": 0.99, "brand": "Jack Daniel's", "picture": "https://img.rewe-static.de/3236518/26665685_digital-image.png"}, {"store": "rewe.de", "product": "Jack Daniel's Whiskey mixed with Ginger 0,33l", "link": "https://rewe.de/produkte/340268", "product_id": "340268", "price": 2.0, "old_price": 2.99, "saved": 0.99, "brand": "Jack Daniel's", "picture": "https://img.rewe-static.de/0340268/20396185_digital-image.png"}, {"store": "rewe.de", "product": "Tafeltrauben blau kernlos 500g", "link": "https://rewe.de/produkte/1104863", "product_id": "1104863", "price": 1.59, "old_price": 1.79, "saved": 0.2, "brand": "", "picture": "https://img.rewe-static.de/1104863/21432767_digital-image.png"}, {"store": "rewe.de", "product": "Jack Daniel's Whiskey mixed with Berry 0,33l", "link": "https://rewe.de/produkte/8095718", "product_id": "8095718", "price": 2.0, "old_price": 2.99, "saved": 0.99, "brand": "Jack Daniel's", "picture": "https://img.rewe-static.de/8095718/28926638_digital-image.png"}, {"store": "rewe.de", "product": "Avocado Hass essreif 1 Stück", "link": "https://rewe.de/produkte/151854", "product_id": "151854", "price": 1.11, "old_price": 1.29, "saved": 0.18, "brand": "", "picture": "https://img.rewe-static.de/0151854/25018105_digital-image.png"}, {"store": "rewe.de", "product": "Radieschen im Bund", "link": "https://rewe.de/produkte/483168", "product_id": "483168", "price": 0.45, "old_price": 0.69, "saved": 0.24, "brand": "", "picture": "https://img.rewe-static.de/0483168/9686150_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Pfirsich-Maracuja 150g", "link": "https://rewe.de/produkte/3997944", "product_id": "3997944", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/3997944/22283526_digital-image.png"}, {"store": "rewe.de", "product": "Eisbergsalat 1 Stück", "link": "https://rewe.de/produkte/482595", "product_id": "482595", "price": 0.75, "old_price": 0.99, "saved": 0.24, "brand": "", "picture": "https://img.rewe-static.de/0482595/24570316_digital-image.png"}, {"store": "rewe.de", "product": "Arla Kaergarden Gesalzen aus Butter & Rapsöl 200g", "link": "https://rewe.de/produkte/7655435", "product_id": "7655435", "price": 1.59, "old_price": 2.39, "saved": 0.8, "brand": "Arla", "picture": "https://img.rewe-static.de/7655435/40788231_digital-image.png"}, {"store": "rewe.de", "product": "Pfirsich gelbfleischig ca. 120g", "link": "https://rewe.de/produkte/195324", "product_id": "195324", "price": 0.33, "old_price": 0.54, "saved": 0.21, "brand": "", "picture": "https://img.rewe-static.de/0195324/26810090_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Waldbeeren 150g", "link": "https://rewe.de/produkte/1916343", "product_id": "1916343", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/1916343/757100_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Kartoffeln festkochend 1,5kg", "link": "https://rewe.de/produkte/2550530", "product_id": "2550530", "price": 2.79, "old_price": 3.99, "saved": 1.2, "brand": "", "picture": "https://img.rewe-static.de/2550530/29319441_digital-image.png"}, {"store": "rewe.de", "product": "Lenor Weichspüler Aprilfrisch 950ml 38WL", "link": "https://rewe.de/produkte/9051304", "product_id": "9051304", "price": 1.89, "old_price": 2.49, "saved": 0.6, "brand": "Lenor", "picture": "https://img.rewe-static.de/9051304/42345739_digital-image.png"}, {"store": "rewe.de", "product": "Müller Milchreis Original 200g", "link": "https://rewe.de/produkte/4531540", "product_id": "4531540", "price": 0.44, "old_price": 0.89, "saved": 0.45, "brand": "Müller", "picture": "https://img.rewe-static.de/4531540/652200_digital-image.png"}, {"store": "rewe.de", "product": "NIVEA Pflegedusche Creme Care 250ml", "link": "https://rewe.de/produkte/7800857", "product_id": "7800857", "price": 1.49, "old_price": 1.75, "saved": 0.26, "brand": "NIVEA", "picture": "https://img.rewe-static.de/7800857/36084430_digital-image.png"}, {"store": "rewe.de", "product": "Salinenknacker", "link": "https://rewe.de/produkte/9062364", "product_id": "9062364", "price": 1.49, "old_price": 1.99, "saved": 0.5, "brand": "", "picture": "https://img.rewe-static.de/9062364/43455486_digital-image.png"}, {"store": "rewe.de", "product": "Kinder Choco fresh 5x20,5g", "link": "https://rewe.de/produkte/8106994", "product_id": "8106994", "price": 1.39, "old_price": 1.99, "saved": 0.6, "brand": "Kinder", "picture": "https://img.rewe-static.de/8106994/28857984_digital-image.png"}, {"store": "rewe.de", "product": "REWE Beste Wahl Gouda Holland jung 210g", "link": "https://rewe.de/produkte/8048590", "product_id": "8048590", "price": 1.79, "old_price": 2.29, "saved": 0.5, "brand": "REWE Beste Wahl", "picture": "https://img.rewe-static.de/8048590/30105877_digital-image.png"}, {"store": "rewe.de", "product": "Duschdas 3-in-1 Duschgel & Shampoo Noire 225ml", "link": "https://rewe.de/produkte/8911414", "product_id": "8911414", "price": 1.0, "old_price": 1.79, "saved": 0.79, "brand": "Duschdas", "picture": "https://img.rewe-static.de/8911414/38937664_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Zucchini 500g", "link": "https://rewe.de/produkte/2577507", "product_id": "2577507", "price": 1.39, "old_price": 1.99, "saved": 0.6, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/2577507/26644840_digital-image.png"}, {"store": "rewe.de", "product": "Philadelphia Natur Doppelrahmstufe 175g", "link": "https://rewe.de/produkte/575043", "product_id": "575043", "price": 1.29, "old_price": 1.99, "saved": 0.7, "brand": "Philadelphia", "picture": "https://img.rewe-static.de/0575043/770460_digital-image.png"}, {"store": "rewe.de", "product": "Galbani Mozzarella 125g", "link": "https://rewe.de/produkte/5205263", "product_id": "5205263", "price": 1.11, "old_price": 1.99, "saved": 0.88, "brand": "Galbani", "picture": "https://img.rewe-static.de/5205263/1690850_digital-image.png"}, {"store": "rewe.de", "product": "Bürger Schwäbische Maultaschen traditionell 360g", "link": "https://rewe.de/produkte/8218587", "product_id": "8218587", "price": 1.49, "old_price": 2.19, "saved": 0.7, "brand": "Bürger", "picture": "https://img.rewe-static.de/8218587/1905830_digital-image.png"}, {"store": "rewe.de", "product": "Jack Daniel's mit Coca Cola 0,33l", "link": "https://rewe.de/produkte/8969607", "product_id": "8969607", "price": 2.0, "old_price": 2.99, "saved": 0.99, "brand": "Jack Daniel's", "picture": "https://img.rewe-static.de/8969607/40349794_digital-image.png"}, {"store": "rewe.de", "product": "Kinder Duo Kekse 150g", "link": "https://rewe.de/produkte/7756359", "product_id": "7756359", "price": 2.0, "old_price": 2.69, "saved": 0.69, "brand": "Kinder", "picture": "https://img.rewe-static.de/7756359/41081343_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Speisequarkzubereitung Magerstufe 250g", "link": "https://rewe.de/produkte/194184", "product_id": "194184", "price": 0.85, "old_price": 1.15, "saved": 0.3, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/0194184/4770930_digital-image.png"}, {"store": "rewe.de", "product": "Golden Kaan Ithemba Weißwein Sauvignon blanc trocken 0,75l", "link": "https://rewe.de/produkte/7876025", "product_id": "7876025", "price": 4.49, "old_price": 5.49, "saved": 1.0, "brand": "Golden Kaan", "picture": "https://img.rewe-static.de/7876025/1394910_digital-image.png"}, {"store": "rewe.de", "product": "Almette Tomate-Pesto 150g", "link": "https://rewe.de/produkte/2035827", "product_id": "2035827", "price": 1.0, "old_price": 1.99, "saved": 0.99, "brand": "Almette", "picture": "https://img.rewe-static.de/2035827/22778072_digital-image.png"}, {"store": "rewe.de", "product": "Capri-Sun Monsteralarm Multipack 10x0,2l", "link": "https://rewe.de/produkte/2100695", "product_id": "2100695", "price": 3.29, "old_price": 4.29, "saved": 1.0, "brand": "Capri-Sun", "picture": "https://img.rewe-static.de/2100695/26223011_digital-image.png"}, {"store": "rewe.de", "product": "Capri-Sun Multivitamin ohne Zucker 10x0,2l", "link": "https://rewe.de/produkte/7611523", "product_id": "7611523", "price": 3.29, "old_price": 4.29, "saved": 1.0, "brand": "Capri-Sun", "picture": "https://img.rewe-static.de/7611523/42124753_digital-image.png"}, {"store": "rewe.de", "product": "Lenor Weichspüler Provence 950ml 38WL", "link": "https://rewe.de/produkte/7607373", "product_id": "7607373", "price": 1.89, "old_price": 2.49, "saved": 0.6, "brand": "Lenor", "picture": "https://img.rewe-static.de/7607373/43279529_digital-image.png"}, {"store": "rewe.de", "product": "Corny Schoko-Banane 6x25g", "link": "https://rewe.de/produkte/544805", "product_id": "544805", "price": 1.29, "old_price": 1.79, "saved": 0.5, "brand": "CORNY", "picture": "https://img.rewe-static.de/0544805/21427149_digital-image.png"}, {"store": "rewe.de", "product": "Heinz Tomato Ketchup 50% weniger Zucker & Salz 500ml", "link": "https://rewe.de/produkte/8277331", "product_id": "8277331", "price": 2.0, "old_price": 3.49, "saved": 1.49, "brand": "Heinz", "picture": "https://img.rewe-static.de/8277331/29387629_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Stracciatella 150g", "link": "https://rewe.de/produkte/5987946", "product_id": "5987946", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/5987946/2320660_digital-image.png"}, {"store": "rewe.de", "product": "M&M's crispy 213g", "link": "https://rewe.de/produkte/7604627", "product_id": "7604627", "price": 2.22, "old_price": 3.99, "saved": 1.77, "brand": "M&M's", "picture": "https://img.rewe-static.de/7604627/43113006_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Himbeere 150g", "link": "https://rewe.de/produkte/7325428", "product_id": "7325428", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/7325428/2184710_digital-image.png"}, {"store": "rewe.de", "product": "Meggle Rustikal Baguette Kräuterfüllung vegan 160g", "link": "https://rewe.de/produkte/8925147", "product_id": "8925147", "price": 1.11, "old_price": 1.59, "saved": 0.48, "brand": "Meggle", "picture": "https://img.rewe-static.de/8925147/39175733_digital-image.png"}, {"store": "rewe.de", "product": "Müller Müllermilch Schoko 400ml", "link": "https://rewe.de/produkte/9028276", "product_id": "9028276", "price": 0.55, "old_price": 1.39, "saved": 0.84, "brand": "Müller", "picture": "https://img.rewe-static.de/9028276/42080159_digital-image.png"}, {"store": "rewe.de", "product": "Leerdammer Delacrème Käse", "link": "https://rewe.de/produkte/8794947", "product_id": "8794947", "price": 0.99, "old_price": 1.89, "saved": 0.9, "brand": "Leerdammer", "picture": "https://img.rewe-static.de/8794947/36857092_digital-image.png"}, {"store": "rewe.de", "product": "Weihenstephan Frischer fettarmer Joghurt mild 500g", "link": "https://rewe.de/produkte/1361920", "product_id": "1361920", "price": 1.0, "old_price": 1.39, "saved": 0.39, "brand": "Weihenstephan", "picture": "https://img.rewe-static.de/1361920/35879717_digital-image.png"}, {"store": "rewe.de", "product": "Lenor Weichspüler Orchidee & Vanille 800ml 32WL", "link": "https://rewe.de/produkte/9052986", "product_id": "9052986", "price": 1.89, "old_price": 2.49, "saved": 0.6, "brand": "Lenor", "picture": "https://img.rewe-static.de/9052986/42345741_digital-image.png"}, {"store": "rewe.de", "product": "NIVEA Men Duschgel Protect & Care 250ml", "link": "https://rewe.de/produkte/7799294", "product_id": "7799294", "price": 1.49, "old_price": 1.75, "saved": 0.26, "brand": "NIVEA", "picture": "https://img.rewe-static.de/7799294/36085683_digital-image.png"}, {"store": "rewe.de", "product": "Metten Salami Spezial in Scheiben", "link": "https://rewe.de/produkte/2465504", "product_id": "2465504", "price": 1.79, "old_price": 2.39, "saved": 0.6, "brand": "", "picture": "https://img.rewe-static.de/2465504/24345949_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Zitrone 150g", "link": "https://rewe.de/produkte/1916386", "product_id": "1916386", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/1916386/3312800_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Haselnuss 150g", "link": "https://rewe.de/produkte/3713954", "product_id": "3713954", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/3713954/1491310_digital-image.png"}, {"store": "rewe.de", "product": "Wasa Knäckebrot Leinsamen 210g", "link": "https://rewe.de/produkte/8939648", "product_id": "8939648", "price": 1.79, "old_price": 2.39, "saved": 0.6, "brand": "Wasa", "picture": "https://img.rewe-static.de/8939648/39489288_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Nektarine-Floridaorange 150g", "link": "https://rewe.de/produkte/1916467", "product_id": "1916467", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/1916467/3034820_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Kiwi-Stachelbeere 150g", "link": "https://rewe.de/produkte/3997774", "product_id": "3997774", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/3997774/1391130_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Ananas 150g", "link": "https://rewe.de/produkte/3997723", "product_id": "3997723", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/3997723/5929300_digital-image.png"}, {"store": "rewe.de", "product": "Lipton Ice Tea Pfirsich 1,25l", "link": "https://rewe.de/produkte/9057936", "product_id": "9057936", "price": 1.29, "old_price": 1.89, "saved": 0.6, "brand": "Lipton", "picture": "https://img.rewe-static.de/9057936/42812089_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix Schinken-Hack Röllchen 30g", "link": "https://rewe.de/produkte/8569186", "product_id": "8569186", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/8569186/32805598_digital-image.png"}, {"store": "rewe.de", "product": "Zespri Kiwi Green 1 Stück", "link": "https://rewe.de/produkte/195634", "product_id": "195634", "price": 0.35, "old_price": 0.39, "saved": 0.04, "brand": "", "picture": "https://img.rewe-static.de/0195634/31049727_digital-image.png"}, {"store": "rewe.de", "product": "Chio Tortilla Salted 110g", "link": "https://rewe.de/produkte/8827889", "product_id": "8827889", "price": 1.0, "old_price": 1.89, "saved": 0.89, "brand": "Chio", "picture": "https://img.rewe-static.de/8827889/38459872_digital-image.png"}, {"store": "rewe.de", "product": "Kinder Joy Überraschungsei 20g", "link": "https://rewe.de/produkte/3299546", "product_id": "3299546", "price": 0.89, "old_price": 1.29, "saved": 0.4, "brand": "Kinder", "picture": "https://img.rewe-static.de/3299546/2424900_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Mini-Kartoffel-Taschen 300g", "link": "https://rewe.de/produkte/8498663", "product_id": "8498663", "price": 2.49, "old_price": 3.19, "saved": 0.7, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/8498663/32452525_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Mozzarella 125g", "link": "https://rewe.de/produkte/200385", "product_id": "200385", "price": 0.99, "old_price": 1.19, "saved": 0.2, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/0200385/7299280_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Goldbären Sauer 175g", "link": "https://rewe.de/produkte/8859670", "product_id": "8859670", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/8859670/36839532_digital-image.png"}, {"store": "rewe.de", "product": "REWE Beste Wahl Rispentomaten 650g", "link": "https://rewe.de/produkte/1041188", "product_id": "1041188", "price": 1.49, "old_price": 2.9, "saved": 1.41, "brand": "REWE Beste Wahl", "picture": "https://img.rewe-static.de/1041188/21306442_digital-image.png"}, {"store": "rewe.de", "product": "Merl Rheinischer Kartoffelsalat 500g", "link": "https://rewe.de/produkte/5144612", "product_id": "5144612", "price": 1.59, "old_price": 2.29, "saved": 0.7, "brand": "Merl", "picture": "https://img.rewe-static.de/5144612/22443620_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix Tomaten-Mozzarella Tortelloni 34g", "link": "https://rewe.de/produkte/8801130", "product_id": "8801130", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/8801130/38891519_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Schlümpfe Vegetarisch 175g", "link": "https://rewe.de/produkte/8794099", "product_id": "8794099", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/8794099/36839621_digital-image.png"}, {"store": "rewe.de", "product": "Müller Müllermilch Erdbeere 400ml", "link": "https://rewe.de/produkte/9024283", "product_id": "9024283", "price": 0.55, "old_price": 1.39, "saved": 0.84, "brand": "Müller", "picture": "https://img.rewe-static.de/9024283/42080156_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Lakritz Parade 175g", "link": "https://rewe.de/produkte/8792782", "product_id": "8792782", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/8792782/36839402_digital-image.png"}, {"store": "rewe.de", "product": "Chio Tortillas Mexican BBQ 110g", "link": "https://rewe.de/produkte/7750905", "product_id": "7750905", "price": 1.0, "old_price": 1.89, "saved": 0.89, "brand": "Chio", "picture": "https://img.rewe-static.de/7750905/37356540_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio + vegan Falafel Trockenmischung 175g", "link": "https://rewe.de/produkte/7250357", "product_id": "7250357", "price": 0.99, "old_price": 1.29, "saved": 0.3, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/7250357/28506455_digital-image.png"}, {"store": "rewe.de", "product": "Mini Gurke 1 Stück", "link": "https://rewe.de/produkte/7238557", "product_id": "7238557", "price": 0.39, "old_price": 0.55, "saved": 0.16, "brand": "", "picture": "https://img.rewe-static.de/7238557/28430588_digital-image.png"}, {"store": "rewe.de", "product": "Kerrygold Cheddar Scheiben herzhaft 150g", "link": "https://rewe.de/produkte/2602784", "product_id": "2602784", "price": 1.49, "old_price": 2.99, "saved": 1.5, "brand": "Kerrygold", "picture": "https://img.rewe-static.de/2602784/31914783_digital-image.png"}, {"store": "rewe.de", "product": "Spitzpaprika rot 500g", "link": "https://rewe.de/produkte/2212948", "product_id": "2212948", "price": 1.59, "old_price": 2.19, "saved": 0.6, "brand": "", "picture": "https://img.rewe-static.de/2212948/23275441_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix Ofen-Bällchen mit Gouda 43g", "link": "https://rewe.de/produkte/8736924", "product_id": "8736924", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/8736924/35899593_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix für Champignon Rahm-Hähnchen 36g", "link": "https://rewe.de/produkte/2336682", "product_id": "2336682", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/2336682/23637339_digital-image.png"}, {"store": "rewe.de", "product": "Arla Kaergarden Ungesalzen aus Butter & Rapsöl 200g", "link": "https://rewe.de/produkte/7654438", "product_id": "7654438", "price": 1.59, "old_price": 2.39, "saved": 0.8, "brand": "Arla", "picture": "https://img.rewe-static.de/7654438/40788203_digital-image.png"}, {"store": "rewe.de", "product": "Brombeeren 125g", "link": "https://rewe.de/produkte/1045666", "product_id": "1045666", "price": 1.99, "old_price": 2.79, "saved": 0.8, "brand": "", "picture": "https://img.rewe-static.de/1045666/21397419_digital-image.png"}, {"store": "rewe.de", "product": "Meggle Klassik Baguette Kräuter-Butter 160g", "link": "https://rewe.de/produkte/330377", "product_id": "330377", "price": 1.11, "old_price": 1.59, "saved": 0.48, "brand": "Meggle", "picture": "https://img.rewe-static.de/0330377/2767470_digital-image.png"}, {"store": "rewe.de", "product": "Müller Milchreis Zimt 200g", "link": "https://rewe.de/produkte/4531361", "product_id": "4531361", "price": 0.44, "old_price": 0.89, "saved": 0.45, "brand": "Müller", "picture": "https://img.rewe-static.de/4531361/652210_digital-image.png"}, {"store": "rewe.de", "product": "Popp Brotaufstrich Eiersalat 150g", "link": "https://rewe.de/produkte/3078868", "product_id": "3078868", "price": 1.29, "old_price": 1.79, "saved": 0.5, "brand": "Popp", "picture": "https://img.rewe-static.de/3078868/2278120_digital-image.png"}, {"store": "rewe.de", "product": "Porree 1 Stück", "link": "https://rewe.de/produkte/8311846", "product_id": "8311846", "price": 0.77, "old_price": 0.95, "saved": 0.18, "brand": "", "picture": "https://img.rewe-static.de/8311846/7360610_digital-image.png"}, {"store": "rewe.de", "product": "Hackfleisch gemischt", "link": "https://rewe.de/produkte/8339972", "product_id": "8339972", "price": 0.88, "old_price": 1.1, "saved": 0.22, "brand": "", "picture": "https://img.rewe-static.de/8339972/31711835_digital-image.png"}, {"store": "rewe.de", "product": "REWE Beste Wahl Leicht-Rohschinken 150g, 3 Stück", "link": "https://rewe.de/produkte/296889", "product_id": "296889", "price": 1.99, "old_price": 2.49, "saved": 0.5, "brand": "REWE Beste Wahl", "picture": "https://img.rewe-static.de/0296889/30447216_digital-image.png"}, {"store": "rewe.de", "product": "Bio Kartoffeln vorwiegend festkochend 1,5kg", "link": "https://rewe.de/produkte/8108440", "product_id": "8108440", "price": 2.79, "old_price": 3.99, "saved": 1.2, "brand": "", "picture": "https://img.rewe-static.de/8108440/30644913_digital-image.png"}, {"store": "rewe.de", "product": "REWE Beste Wahl Vollkorn Brötchen 510g", "link": "https://rewe.de/produkte/7726939", "product_id": "7726939", "price": 2.29, "old_price": 2.69, "saved": 0.4, "brand": "REWE Beste Wahl", "picture": "https://img.rewe-static.de/7726939/38387830_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Goldbären 175g", "link": "https://rewe.de/produkte/7772669", "product_id": "7772669", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/7772669/36839491_digital-image.png"}, {"store": "rewe.de", "product": "Gutfried Geflügel-Fleischwurst 400g", "link": "https://rewe.de/produkte/715195", "product_id": "715195", "price": 2.79, "old_price": 3.49, "saved": 0.7, "brand": "Gutfried", "picture": "https://img.rewe-static.de/0715195/32350720_digital-image.png"}, {"store": "rewe.de", "product": "Twix Riegel 5x50g", "link": "https://rewe.de/produkte/9149380", "product_id": "9149380", "price": 1.79, "old_price": 2.59, "saved": 0.8, "brand": "Twix", "picture": "https://img.rewe-static.de/9149380/42812438_digital-image.png"}, {"store": "rewe.de", "product": "Heinz Tomato Ketchup 500ml", "link": "https://rewe.de/produkte/7817568", "product_id": "7817568", "price": 2.0, "old_price": 3.49, "saved": 1.49, "brand": "Heinz", "picture": "https://img.rewe-static.de/7817568/1835670_digital-image.png"}, {"store": "rewe.de", "product": "Arla Bio Frische Weidemilch 3,8% 1l", "link": "https://rewe.de/produkte/2058036", "product_id": "2058036", "price": 1.29, "old_price": 1.69, "saved": 0.4, "brand": "Arla", "picture": "https://img.rewe-static.de/2058036/40601561_digital-image.png"}, {"store": "rewe.de", "product": "Iglo Fischstäbchen 450g, 15 Stück", "link": "https://rewe.de/produkte/4305760", "product_id": "4305760", "price": 2.99, "old_price": 4.49, "saved": 1.5, "brand": "Iglo", "picture": "https://img.rewe-static.de/4305760/24973160_digital-image.png"}, {"store": "rewe.de", "product": "Meggle Klassik Baguette Knoblauch-Butter 160g", "link": "https://rewe.de/produkte/330378", "product_id": "330378", "price": 1.11, "old_price": 1.59, "saved": 0.48, "brand": "Meggle", "picture": "https://img.rewe-static.de/0330378/29141493_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Ahornsirup 250ml", "link": "https://rewe.de/produkte/360671", "product_id": "360671", "price": 3.99, "old_price": 4.99, "saved": 1.0, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/0360671/2616470_digital-image.png"}, {"store": "rewe.de", "product": "Müller Milchreis Schoko 200g", "link": "https://rewe.de/produkte/4531655", "product_id": "4531655", "price": 0.44, "old_price": 0.89, "saved": 0.45, "brand": "Müller", "picture": "https://img.rewe-static.de/4531655/652250_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Quaxi 175g", "link": "https://rewe.de/produkte/7771566", "product_id": "7771566", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/7771566/36839550_digital-image.png"}, {"store": "rewe.de", "product": "Colgate Zahnpasta Total Original 75ml", "link": "https://rewe.de/produkte/2226666", "product_id": "2226666", "price": 2.29, "old_price": 2.95, "saved": 0.66, "brand": "Colgate", "picture": "https://img.rewe-static.de/2226666/29317500_digital-image.png"}, {"store": "rewe.de", "product": "Wilhelm Brandenburg Salami Spitzenqualität", "link": "https://rewe.de/produkte/7077421", "product_id": "7077421", "price": 1.43, "old_price": 1.79, "saved": 0.36, "brand": "Wilhelm Brandenburg", "picture": "https://img.rewe-static.de/7077421/26924004_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Phantasia 175g", "link": "https://rewe.de/produkte/8794187", "product_id": "8794187", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/8794187/36839510_digital-image.png"}, {"store": "rewe.de", "product": "Knorr Cocktail-Sauce 250ml", "link": "https://rewe.de/produkte/4584244", "product_id": "4584244", "price": 1.0, "old_price": 1.69, "saved": 0.69, "brand": "Knorr", "picture": "https://img.rewe-static.de/4584244/1981380_digital-image.png"}, {"store": "rewe.de", "product": "Kaltbach Der Cremig-Würzige in Scheiben", "link": "https://rewe.de/produkte/1900047", "product_id": "1900047", "price": 2.49, "old_price": 2.99, "saved": 0.5, "brand": "Emmi", "picture": "https://img.rewe-static.de/1900047/21541876_digital-image.png"}, {"store": "rewe.de", "product": "Knorr Curry-Sauce 250ml", "link": "https://rewe.de/produkte/4584252", "product_id": "4584252", "price": 1.0, "old_price": 1.69, "saved": 0.69, "brand": "Knorr", "picture": "https://img.rewe-static.de/4584252/10796980_digital-image.png"}, {"store": "rewe.de", "product": "Morawitzky Kölner Bratwurst 400g", "link": "https://rewe.de/produkte/2769632", "product_id": "2769632", "price": 4.79, "old_price": 5.99, "saved": 1.2, "brand": "Morawitzky", "picture": "https://img.rewe-static.de/2769632/24975202_digital-image.png"}, {"store": "rewe.de", "product": "Harry Weltmeister-Mehrkorn 750g", "link": "https://rewe.de/produkte/4620470", "product_id": "4620470", "price": 1.69, "old_price": 1.99, "saved": 0.3, "brand": "Harry", "picture": "https://img.rewe-static.de/4620470/22199196_digital-image.png"}, {"store": "rewe.de", "product": "Spee Colorwaschmittel Color Gel 990ml, 22WL", "link": "https://rewe.de/produkte/8905698", "product_id": "8905698", "price": 3.49, "old_price": 3.69, "saved": 0.2, "brand": "Spee", "picture": "https://img.rewe-static.de/8905698/38626505_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Konfekt 175g", "link": "https://rewe.de/produkte/8861280", "product_id": "8861280", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/8861280/36839581_digital-image.png"}, {"store": "rewe.de", "product": "Capri-Sun Orange Multipack 10x0,2l", "link": "https://rewe.de/produkte/9088543", "product_id": "9088543", "price": 3.29, "old_price": 4.29, "saved": 1.0, "brand": "Capri-Sun", "picture": "https://img.rewe-static.de/9088543/43276832_digital-image.png"}, {"store": "rewe.de", "product": "Arla Kaergarden Balance Gesalzen aus Butter & Rapsöl 200g", "link": "https://rewe.de/produkte/8976827", "product_id": "8976827", "price": 1.59, "old_price": 2.39, "saved": 0.8, "brand": "Arla", "picture": "https://img.rewe-static.de/8976827/40798005_digital-image.png"}, {"store": "rewe.de", "product": "Arla Kaergarden Balance Ungesalzen aus Butter & Rapsöl 200g", "link": "https://rewe.de/produkte/7655931", "product_id": "7655931", "price": 1.59, "old_price": 2.39, "saved": 0.8, "brand": "Arla", "picture": "https://img.rewe-static.de/7655931/40551225_digital-image.png"}, {"store": "rewe.de", "product": "Corny Süß & Salzig Erdnuss 6x25g", "link": "https://rewe.de/produkte/7224262", "product_id": "7224262", "price": 1.29, "old_price": 1.79, "saved": 0.5, "brand": "CORNY", "picture": "https://img.rewe-static.de/7224262/28086337_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Sauerbrenner 160g", "link": "https://rewe.de/produkte/7772397", "product_id": "7772397", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/7772397/38605341_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Wine Gums 175g", "link": "https://rewe.de/produkte/7770708", "product_id": "7770708", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/7770708/36867131_digital-image.png"}, {"store": "rewe.de", "product": "Duschdas Duschgel Pfirsich 225ml", "link": "https://rewe.de/produkte/8912927", "product_id": "8912927", "price": 1.0, "old_price": 1.79, "saved": 0.79, "brand": "Duschdas", "picture": "https://img.rewe-static.de/8912927/39134040_digital-image.png"}, {"store": "rewe.de", "product": "Leerdammer Delacreme 175g", "link": "https://rewe.de/produkte/8254315", "product_id": "8254315", "price": 1.73, "old_price": 3.29, "saved": 1.56, "brand": "Leerdammer", "picture": "https://img.rewe-static.de/8254315/28790418_digital-image.png"}, {"store": "rewe.de", "product": "Bebe Pflegende Reinigungstücher mit Kokoswasser 25 Stück", "link": "https://rewe.de/produkte/2727519", "product_id": "2727519", "price": 1.79, "old_price": 2.15, "saved": 0.36, "brand": "Bebe", "picture": "https://img.rewe-static.de/2727519/24954685_digital-image.png"}, {"store": "rewe.de", "product": "Heinz Beanz Gebackene Bohnen 415g", "link": "https://rewe.de/produkte/7563914", "product_id": "7563914", "price": 1.79, "old_price": 2.49, "saved": 0.7, "brand": "Heinz", "picture": "https://img.rewe-static.de/7563914/2678560_digital-image.png"}, {"store": "rewe.de", "product": "Haribo Fruchtgummi Happy-Cola Sauer 175g", "link": "https://rewe.de/produkte/7771075", "product_id": "7771075", "price": 0.89, "old_price": 1.19, "saved": 0.3, "brand": "Haribo", "picture": "https://img.rewe-static.de/7771075/36839605_digital-image.png"}, {"store": "rewe.de", "product": "Dr. Oetker Vitalis Knuspermüsli Plus Double Chocolate 450g", "link": "https://rewe.de/produkte/687349", "product_id": "687349", "price": 2.49, "old_price": 3.99, "saved": 1.5, "brand": "Dr. Oetker", "picture": "https://img.rewe-static.de/0687349/6377920_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Kurkuma Shot mit Orangensaft 150ml", "link": "https://rewe.de/produkte/8877187", "product_id": "8877187", "price": 0.99, "old_price": 1.19, "saved": 0.2, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/8877187/38673940_digital-image.png"}, {"store": "rewe.de", "product": "Wilhelm Brandenburg Wiener Würstchen 500g", "link": "https://rewe.de/produkte/72448", "product_id": "72448", "price": 4.4, "old_price": 7.99, "saved": 3.59, "brand": "Wilhelm Brandenburg", "picture": "https://img.rewe-static.de/0072448/6232260_digital-image.png"}, {"store": "rewe.de", "product": "Pfifferlinge frisch 250g", "link": "https://rewe.de/produkte/217506", "product_id": "217506", "price": 4.99, "old_price": 5.49, "saved": 0.5, "brand": "", "picture": "https://img.rewe-static.de/0217506/20361451_digital-image.png"}, {"store": "rewe.de", "product": "Ariel Colorwaschmittel Flüssig 1l 20WL", "link": "https://rewe.de/produkte/9055435", "product_id": "9055435", "price": 4.99, "old_price": 6.19, "saved": 1.2, "brand": "Ariel", "picture": "https://img.rewe-static.de/9055435/42362692_digital-image.png"}, {"store": "rewe.de", "product": "WC Frisch Kraft-Aktiv Violett Magnolie 50g", "link": "https://rewe.de/produkte/8380865", "product_id": "8380865", "price": 1.59, "old_price": 1.99, "saved": 0.4, "brand": "WC Frisch", "picture": "https://img.rewe-static.de/8380865/30643634_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix Chili Con Carne 33g", "link": "https://rewe.de/produkte/8566967", "product_id": "8566967", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/8566967/32805590_digital-image.png"}, {"store": "rewe.de", "product": "Pantene Pro-V Haarshampoo Repair&Care 300ml", "link": "https://rewe.de/produkte/3201401", "product_id": "3201401", "price": 2.99, "old_price": 3.45, "saved": 0.46, "brand": "Pantene Pro-V", "picture": "https://img.rewe-static.de/3201401/26109070_digital-image.png"}, {"store": "rewe.de", "product": "Milkana Schmelzkäse Sahne 190g", "link": "https://rewe.de/produkte/8724154", "product_id": "8724154", "price": 1.89, "old_price": 2.69, "saved": 0.8, "brand": "Milkana", "picture": "https://img.rewe-static.de/8724154/35504236_digital-image.png"}, {"store": "rewe.de", "product": "Müller Müllermilch Pistazien-Kokos 400ml", "link": "https://rewe.de/produkte/7623691", "product_id": "7623691", "price": 0.55, "old_price": 1.39, "saved": 0.84, "brand": "Müller", "picture": "https://img.rewe-static.de/7623691/42389302_digital-image.png"}, {"store": "rewe.de", "product": "Gerolsteiner Leichte Schorle Apfel 0,75l", "link": "https://rewe.de/produkte/7944965", "product_id": "7944965", "price": 1.0, "old_price": 1.19, "saved": 0.19, "brand": "Gerolsteiner", "picture": "https://img.rewe-static.de/7944965/32147744_digital-image.png"}, {"store": "rewe.de", "product": "Weißer Riese Vollwaschmittel Gel 990ml, 22WL", "link": "https://rewe.de/produkte/8914047", "product_id": "8914047", "price": 3.49, "old_price": 3.69, "saved": 0.2, "brand": "Weißer Riese", "picture": "https://img.rewe-static.de/8914047/38802583_digital-image.png"}, {"store": "rewe.de", "product": "Bebe 5in1 Erfrischende Reinigungstücher 25 Stück", "link": "https://rewe.de/produkte/2727496", "product_id": "2727496", "price": 1.79, "old_price": 2.15, "saved": 0.36, "brand": "Bebe", "picture": "https://img.rewe-static.de/2727496/24973397_digital-image.png"}, {"store": "rewe.de", "product": "Gerolsteiner Plus Zitrone 0,75l", "link": "https://rewe.de/produkte/8267469", "product_id": "8267469", "price": 1.0, "old_price": 1.19, "saved": 0.19, "brand": "Gerolsteiner", "picture": "https://img.rewe-static.de/8267469/29098800_digital-image.png"}, {"store": "rewe.de", "product": "Maggi Fix Teriyaki Hähnchen 43g", "link": "https://rewe.de/produkte/7623172", "product_id": "7623172", "price": 0.44, "old_price": 1.9, "saved": 1.46, "brand": "Maggi", "picture": "https://img.rewe-static.de/7623172/41726977_digital-image.png"}, {"store": "rewe.de", "product": "Marca Italia Grana Padano Italienischer Hartkäse", "link": "https://rewe.de/produkte/8047388", "product_id": "8047388", "price": 1.99, "old_price": 2.59, "saved": 0.6, "brand": "Marca Italia", "picture": "https://img.rewe-static.de/8047388/29921424_digital-image.png"}, {"store": "rewe.de", "product": "Eduscho Kaffeepads 208g, 32 Pads", "link": "https://rewe.de/produkte/8931030", "product_id": "8931030", "price": 2.99, "old_price": 3.99, "saved": 1.0, "brand": "Eduscho", "picture": "https://img.rewe-static.de/8931030/37576047_digital-image.png"}, {"store": "rewe.de", "product": "Mikado Keks-Sticks Zartherbe Schokolade 75g", "link": "https://rewe.de/produkte/989743", "product_id": "989743", "price": 1.29, "old_price": 1.69, "saved": 0.4, "brand": "Mikado", "picture": "https://img.rewe-static.de/0989743/27661936_digital-image.png"}, {"store": "rewe.de", "product": "Ehrmann Almighurt Caffé latte 150g", "link": "https://rewe.de/produkte/1955425", "product_id": "1955425", "price": 0.35, "old_price": 0.79, "saved": 0.44, "brand": "Ehrmann", "picture": "https://img.rewe-static.de/1955425/22115068_digital-image.png"}, {"store": "rewe.de", "product": "Heinz Hot Chili Ketchup 500ml", "link": "https://rewe.de/produkte/8099828", "product_id": "8099828", "price": 2.0, "old_price": 3.49, "saved": 1.49, "brand": "Heinz", "picture": "https://img.rewe-static.de/8099828/29000659_digital-image.png"}, {"store": "rewe.de", "product": "Metten Pfeffersalami Spezial in Scheiben", "link": "https://rewe.de/produkte/2465527", "product_id": "2465527", "price": 1.79, "old_price": 2.39, "saved": 0.6, "brand": "", "picture": "https://img.rewe-static.de/2465527/24245744_digital-image.png"}, {"store": "rewe.de", "product": "Krombacher Radler zuckerfrei 6x0,33l", "link": "https://rewe.de/produkte/8703836", "product_id": "8703836", "price": 3.79, "old_price": 4.99, "saved": 1.2, "brand": "Krombacher", "picture": "https://img.rewe-static.de/8703836/36086188_digital-image.png"}, {"store": "rewe.de", "product": "Dornseifer Rostbratwurst 5x90g", "link": "https://rewe.de/produkte/1027018", "product_id": "1027018", "price": 4.99, "old_price": 5.99, "saved": 1.0, "brand": "Dornseifer", "picture": "https://img.rewe-static.de/1027018/20175010_digital-image.png"}, {"store": "rewe.de", "product": "Mövenpick Eis Urban Moments Cherry Brownie vegan 800ml", "link": "https://rewe.de/produkte/7611852", "product_id": "7611852", "price": 1.69, "old_price": 3.99, "saved": 2.3, "brand": "Mövenpick", "picture": "https://img.rewe-static.de/7611852/42734350_digital-image.png"}, {"store": "rewe.de", "product": "Melitta BellaCrema Selection des Jahres Ganze Kaffeebohnen 1kg", "link": "https://rewe.de/produkte/1329841", "product_id": "1329841", "price": 9.99, "old_price": 13.99, "saved": 4.0, "brand": "Melitta", "picture": "https://img.rewe-static.de/1329841/26501246_digital-image.png"}, {"store": "rewe.de", "product": "REWE Bio Feta 200g", "link": "https://rewe.de/produkte/8960794", "product_id": "8960794", "price": 2.49, "old_price": 2.79, "saved": 0.3, "brand": "REWE Bio", "picture": "https://img.rewe-static.de/8960794/41159432_digital-image.png"}, {"store": "rewe.de", "product": "Ben & Jerry's Eis Cookies on Cookie Dough Vegan 465ml", "link": "https://rewe.de/produkte/9049872", "product_id": "9049872", "price": 4.44, "old_price": 6.99, "saved": 2.55, "brand": "Ben & Jerry's", "picture": "https://img.rewe-static.de/9049872/44291198_digital-image.png"}, {"store": "rewe.de", "product": "Colgate Total Zahnpasta Plus Gesunde Frische 75ml", "link": "https://rewe.de/produkte/2226672", "product_id": "2226672", "price": 2.29, "old_price": 2.95, "saved": 0.66, "brand": "Colgate", "picture": "https://img.rewe-static.de/2226672/29317508_digital-image.png"}, {"store": "rewe.de", "product": "König Pilsener 20x0,5l", "link": "https://rewe.de/produkte/4477138", "product_id": "4477138", "price": 10.49, "old_price": 15.99, "saved": 5.5, "brand": "König Pilsener", "picture": "https://img.rewe-static.de/4477138/21104244_digital-image.png"}, {"store": "rewe.de", "product": "Warsteiner alkoholfrei 20x0,5l", "link": "https://rewe.de/produkte/6897550", "product_id": "6897550", "price": 11.49, "old_price": 15.99, "saved": 4.5, "brand": "Warsteiner", "picture": "https://img.rewe-static.de/6897550/10067420_digital-image.png"}, {"store": "rewe.de", "product": "Wiesenhof Geflügel-Mortadella 100g", "link": "https://rewe.de/produkte/755656", "product_id": "755656", "price": 1.0, "old_price": 1.49, "saved": 0.49, "brand": "Wiesenhof", "picture": "https://img.rewe-static.de/0755656/43948383_digital-image.png"}, {"store": "rewe.de", "product": "Milkana Käsevielfalt 8 Ecken 190g", "link": "https://rewe.de/produkte/7696667", "product_id": "7696667", "price": 1.89, "old_price": 2.69, "saved": 0.8, "brand": "Milkana", "picture": "https://img.rewe-static.de/7696667/38571406_digital-image.png"}, {"store": "rewe.de", "product": "Philadelphia Natur Balance 175g", "link": "https://rewe.de/produkte/575050", "product_id": "575050", "price": 1.29, "old_price": 1.99, "saved": 0.7, "brand": "Philadelphia", "picture": "https://img.rewe-static.de/0575050/1246290_digital-image.png"}, {"store": "rewe.de", "product": "Kerrygold Cheddar herzhaft gerieben 150g", "link": "https://rewe.de/produkte/7152808", "product_id": "7152808", "price": 1.49, "old_price": 2.89, "saved": 1.4, "brand": "Kerrygold", "picture": "https://img.rewe-static.de/7152808/27077500_digital-image.png"}, {"store": "rewe.de", "product": "Viss Scheuermilch Frühlingsblüten 500ml", "link": "https://rewe.de/produkte/8397654", "product_id": "8397654", "price": 1.49, "old_price": 1.99, "saved": 0.5, "brand": "Viss", "picture": "https://img.rewe-static.de/8397654/30582572_digital-image.png"}, {"store": "rewe.de", "product": "Schwälbchen Speisequark 40% 250g", "link": "https://rewe.de/produkte/176052", "product_id": "176052", "price": 0.79, "old_price": 1.19, "saved": 0.4, "brand": "Schwälbchen", "picture": "https://img.rewe-static.de/0176052/635410_digital-image.png"}, {"store": "rewe.de", "product": "Meggle Laugenbaguette Kräuterbutter 160g", "link": "https://rewe.de/produkte/1312351", "product_id": "1312351", "price": 1.11, "old_price": 1.89, "saved": 0.78, "brand": "Meggle", "picture": "https://img.rewe-static.de/1312351/20828052_digital-image.png"}, {"store": "rewe.de", "product": "Gillette Rasiergel empfindliche Haut 200ml", "link": "https://rewe.de/produkte/4826574", "product_id": "4826574", "price": 2.49, "old_price": 2.75, "saved": 0.26, "brand": "Gillette", "picture": "https://img.rewe-static.de/4826574/1484660_digital-image.png"}, {"store": "rewe.de", "product": "Heinz Knoblauch Sauce 220ml", "link": "https://rewe.de/produkte/7096850", "product_id": "7096850", "price": 1.29, "old_price": 2.29, "saved": 1.0, "brand": "Heinz", "picture": "https://img.rewe-static.de/7096850/27152324_digital-image.png"}, {"store": "rewe.de", "product": "Kühne Gewürzgurken 360g", "link": "https://rewe.de/produkte/283533", "product_id": "283533", "price": 1.99, "old_price": 2.49, "saved": 0.5, "brand": "Kühne", "picture": "https://img.rewe-static.de/0283533/1669640_digital-image.png"}, {"store": "rewe.de", "product": "Weihenstephan Frischer Joghurt mild 0,1% 500g", "link": "https://rewe.de/produkte/841420", "product_id": "841420", "price": 1.0, "old_price": 1.29, "saved": 0.29, "brand": "Weihenstephan", "picture": "https://img.rewe-static.de/0841420/26217736_digital-image.png"}, {"store": "rewe.de", "product": "Gustavo Gusto Pizza Margherita 410g", "link": "https://rewe.de/produkte/2740246", "product_id": "2740246", "price": 3.49, "old_price": 4.69, "saved": 1.2, "brand": "Gustavo Gusto", "picture": "https://img.rewe-static.de/2740246/25140853_digital-image.png"}, {"store": "rewe.de", "product": "Philadelphia Kräuter Balance 175g", "link": "https://rewe.de/produkte/575075", "product_id": "575075", "price": 1.29, "old_price": 1.99, "saved": 0.7, "brand": "Philadelphia", "picture": "https://img.rewe-static.de/0575075/6045800_digital-image.png"}, {"store": "rewe.de", "product": "Paul Söbbeke Bio Joghurt mild 500g", "link": "https://rewe.de/produkte/7972384", "product_id": "7972384", "price": 1.49, "old_price": 1.95, "saved": 0.46, "brand": "Söbbeke Pauls Biomolkerei", "picture": "https://img.rewe-static.de/7972384/31604955_digital-image.png"}, {"store": "rewe.de", "product": "REWE Feine Welt Italiens Backkunst Ciabatta 300g", "link": "https://rewe.de/produkte/896668", "product_id": "896668", "price": 1.49, "old_price": 1.99, "saved": 0.5, "brand": "REWE Feine Welt", "picture": "https://img.rewe-static.de/0896668/5859910_digital-image.png"}, {"store": "rewe.de", "product": "Oreo Cookies Double Creme 157g", "link": "https://rewe.de/produkte/2361355", "product_id": "2361355", "price": 1.29, "old_price": 1.79, "saved": 0.5, "brand": "Oreo", "picture": "https://img.rewe-static.de/2361355/27662031_digital-image.png"}, {"store": "rewe.de", "product": "Almette Natur 150g", "link": "https://rewe.de/produkte/4528174", "product_id": "4528174", "price": 1.0, "old_price": 1.99, "saved": 0.99, "brand": "Almette", "picture": "https://img.rewe-static.de/4528174/3334490_digital-image.png"}, {"store": "rewe.de", "product": "Zott Monte Maxi Schoko 4x100g", "link": "https://rewe.de/produkte/185984", "product_id": "185984", "price": 1.49, "old_price": 2.69, "saved": 1.2, "brand": "Monte", "picture": "https://img.rewe-static.de/0185984/22264573_digital-image.png"}, {"store": "rewe.de", "product": "Philadelphia Kräuter Doppelrahmstufe 175g", "link": "https://rewe.de/produkte/575065", "product_id": "575065", "price": 1.29, "old_price": 1.99, "saved": 0.7, "brand": "Philadelphia", "picture": "https://img.rewe-static.de/0575065/5228120_digital-image.png"}, {"store": "rewe.de", "product": "Mövenpick Eis Vanilla Chocolate 900ml", "link": "https://rewe.de/produkte/7203389", "product_id": "7203389", "price": 1.69, "old_price": 3.99, "saved": 2.3, "brand": "Mövenpick", "picture": "https://img.rewe-static.de/7203389/28042878_digital-image.png"}] diff --git a/data/discounted_to_sql-2024-08-01.sqlite3 b/data/discounted_to_sql-2024-08-01.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..cf7f449612d72b69b578c635479eed21d378feca GIT binary patch literal 49152 zcmeHwdu(LadEbyrF5kORWJeLy)HhDFlA)#M&fK~4u%gb8++FT2m%ChYwX|eA@+Emm z-f%dVx-+w{)PGEo{NXq+6i6C31&knD#3>LPhyx`7Hi==nO&g?!Qn^h7*tLwHhFz=8 z!?Bz;M$+GR9(R_UbHCw|Mj@%Qu(Yc+&v(vu&pF@o_kCyS>ZPFJTkB!8?KLbX^*yP+ zzEs7sQmIrw{u#$V`d1(RFrfbfztewr`_-R%diml6eyZ=pr&IV}?^o{&^u9pv3-rD~ z?+f(4K<^9mzCiB_^u9pv3-rD~?+YCC3;eT-eM65t@<`uL)EnMP)nD_yYF+%Re`fLQ z)U~tLwW;Y#XD#tpmi6SQrGC{LVdPua&c5&3>G<z<qHwLb+SvEE)u6Vu@2}Jkz8I`^ z{2#%pZ(-s~ZK`2)?Zus_^Y8244S#Ll&#pvXt%GK;+GuvHb<KmLzIXWxix=jn7N57~ z&OUEF`R?`_-+kJ8H~sj#-xG7%{?qb>Yv->#cg<S7vV7r8|JW0$k)bcrw;w%OIk7qP z#qr-7{`A;06F)P0W#q#L-ICtV^}ayw3-rD~?+f(4K<^8@iN3&K>+1Mp&SM{(9~v5Z ztTp76N`+D`m$kFGNxL{{XDr)(ZzlKNOd;}b`cJR<XE%`tsM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eg`dR6QWLhvi}Zg}_Z&UlL<SN`$`L<MTReC5zF z9~;338cAU*Jcr_%vWo2oxZsykEh^sWN?td@QD_Q8H3r*0x~KZl<h;KbiC)F%(VQH7 zSA=!*&G^{7Dr0kkEW?Kyj?UT{loOOppI;ONKSRJ<;=@I7k!voB*FqxI;%HL67s5Wj zrwGRD*L_im47YB%4!l570Q9_QI_;uE;FMf9ZYb6bcuHa#N39z#HZ{DUdhn&^a)(-a zE{6mZ8oC-+-mdq@3mQ2WXUt`yO>vSlK(7J>TSarGa4Y1CITYEr-d{E7){V{;QFaH! zy3$BlAZlW`w(aw;xIjbi<nQ0fMf}1%+p(JX0O6zY0Rn;#W4|JiKbw)MPO%#fO8yeh zQ70cS1lx`7djX<H;{gN&561AG=v5+~DnQqCyse9Nu1p9WPtBt7m9-F5>*BqyZcoZ6 zf|VcM_oU4CNo}x?9CxPV%JAqy1~NWph?TcQ*@=ku0dz&LYEdjUaW^h(R6}&xMwqXT rmwr}6=LmW<<}|uBcU5VUcwF?WBCq-Z86wTGB1en2b8%4&7v%o}N(Y-z literal 0 HcmV?d00001 diff --git a/data/my_basket.sqlite3 b/data/my_basket.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..208e27200c2dbba3b8df10c47050bbb482e1c41a GIT binary patch literal 16384 zcmeHO%WoS+7~jpKn>a6|B1Ium86^T*<>7tU-gN|W5@RLKLrxq+=mA9&@7P}1-nG{2 zpq2wNYOhHA16<(JOC`jm2X5umJL;Kpkt)Q2++fE0NQl?lm4Ir4W|er7@$NUj-|ze8 z^^JXWxTjeNR1C8TEg&&(Ff7Zg1HdrMi1Uk!-o@fqQs-Xe|5sfj%<A#Z6uyg{{(-?i z^r8w-1*ig40jdC1fGR*0pbAh0r~*_0sz6u;zT9EC+1Xk4LED0-4WuI2X!l-*vc=p+ zDF;d$n|nFXs{-J53^-TYGE4+Yxlc;VUR}#H)K1yDQrpn<`jsl@#uH8LdqXQDfE(Vs zuxd2ala|?E--c&My>joV3H3g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U<PwW+dC6qJ;>39vFHU$-lm)-kXqhm%N0>+?&o7DTR6uTLADYOrG_YxQ+Bm^) z;ScGN1Zf+T4E&WkV;K}0+8IuizKe6%s0s<Sz`T#$Ugl3b>+hCZNbj@^oIEO-P(@&? zdAc1y(g7V8lj*d;OQKKGR3;?v5RyxTq$ntSda%2;jE)MyPDif-B`E)H+sXXiJF$ql zWifZ016ZfJ^=jZfAOyIaO7KY^;GyEoOEX*wipa&;U?zU6;3zXWBF8#Sa;)<XKGsPk zQ+&WVNWnCKs(}NDzjA7K5_=#3P0hl!_=B@`2yj<|W+nJY!ER`sCC6ef9=hda^8sCi zx1Wv+qL5BYeu>gBq`Wx0-0HO?<ri|-g;b~k+jG@59k2(J^mE-cB^hc~@;n)#S!pnE JKkq~b_+Q0KI^6&O literal 0 HcmV?d00001 diff --git a/data/newest_products_to_sql.sqlite3 b/data/newest_products_to_sql.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..fa4f5a72d6bce6af316b871d1b2728c497df3973 GIT binary patch literal 45056 zcmeHQdyHe(S@%3W&)qgOL{-}KHYnRvWMbckeeEq_9=kI;o1Mu_W+t6%8XDcP?|5#< z<Lg{s@9wPV9}cZ5p_Zy36eUDdC=n8(DiTyBLJ^3LDk#uOC=%fhijq?PD2*rxT7-bY z@4RMw?CWzUkaq71Tgje{<MW;Ko$s9QeDAaQ=!zG*+O8iQIH6{y-jNy@NX=<lDwP_- zzmxb^d<O8BVeubm$$!UvhEfl1KRk_J4V?MC6#nUd`YX_1f&L2gSD?QF{T1l1Kz{}L zE6`to{tEP0puYmAU4dsF9!TGH*IfgjXoSvA)h)YDwL$+Fys)u2zqP1s%`dDhYV<2j zyMIFCpGN2huC}%K_|^l*-_--Z+$@D1-&Vcae#ck*hfjIsuK(ecTnz)SoIv%f<)`XF z_xBCwnp^Jp?M~p-x?p;xu-P@&vI9k3p8opA<<<F(tJ;;ttJ?kdp3L#y2ef<1&+q-< zF{USf+rGTDy!P0Zwz0N-`Qji}e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yeim#S<`LDQ@1*p_CeOQhR!|y3<UKUOD>w3?k+c mTyu)Jc|L$p{zV%Xg~Gd0<sX*N2s4@-{~v*eyzq&|<9`6T&lkr4 literal 0 HcmV?d00001 diff --git a/requirements.txt b/requirements.txt index 8cbedb1..6bcbbdc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ httpx -# apprise is options - used for notifications +apprise +# apprise is optional diff --git a/rewe_dl/config.json b/rewe_dl/config.json index af875cd..84d55cd 100644 --- a/rewe_dl/config.json +++ b/rewe_dl/config.json @@ -11,10 +11,10 @@ }, "cookiesB": {"marketsCookie": { "online": {"wwIdent":"1940419","marketZipCode":"56073","serviceTypes":["PICKUP"],"customerZipCode":"56073"}, - "stationary": {"wwIdent":"1763154","marketZipCode":"56179","serviceTypes":["STATIONARY"]}} + "stationary": {"wwIdent":"1940419","marketZipCode":"56073","serviceTypes":["STATIONARY"]}} }, "cookies": { - "marketsCookie": "%7B%22online%22%3A%7B%22wwIdent%22%3A%221940419%22%2C%22marketZipCode%22%3A%2256073%22%2C%22serviceTypes%22%3A%5B%22PICKUP%22%5D%2C%22customerZipCode%22%3A%2256073%22%7D%2C%22stationary%22%3A%7B%22wwIdent%22%3A%221763154%22%2C%22marketZipCode%22%3A%2256179%22%2C%22serviceTypes%22%3A%5B%22STATIONARY%22%5D%7D%7D", + "marketsCookie": "%7B%22online%22%3A%7B%22wwIdent%22%3A%221940419%22%2C%22marketZipCode%22%3A%2256073%22%2C%22serviceTypes%22%3A%5B%22PICKUP%22%5D%2C%22customerZipCode%22%3A%2256073%22%7D%2C%22stationary%22%3A%7B%22wwIdent%22%3A%221940419%22%2C%22marketZipCode%22%3A%2256073%22%2C%22serviceTypes%22%3A%5B%22STATIONARY%22%5D%7D%7D", "websitebot-launch": "human-mousemove" } } diff --git a/rewe_dl/examples/discounted_to_json.py b/rewe_dl/examples/discounted_to_json.py index b6e26cd..47ad0d0 100644 --- a/rewe_dl/examples/discounted_to_json.py +++ b/rewe_dl/examples/discounted_to_json.py @@ -11,11 +11,14 @@ from datetime import datetime PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) -sys.path.append(os.path.dirname(PROJECT_DIR)) +PROJECT_ROOT = os.path.dirname(PROJECT_DIR) +DATA_FOLDER = os.path.join(os.path.dirname(PROJECT_ROOT), "data") + +sys.path.append(PROJECT_ROOT) from rewe import STORE from parser import Parser -from postprocessor.output import JsonPP +from postprocessor.metadata import MetadataPP log = logging.getLogger(__name__) @@ -23,18 +26,15 @@ def main(): my_store = STORE(store_id="8534540") - discounted = my_store.get_discounted_products() - - product_infos = my_store.product_infos(product_ids=my_store.product_ids(discounted)) + discounted_products = my_store.get_discounted_products() - all_products = [product_md for product_md in Parser().parse_product_infos(product_infos)] + all_products = Parser().parse_search_results_products(discounted_products) todays_date = datetime.today().strftime("%Y-%m-%d") this_file = Path(__file__).stem - file_name = f"{this_file}-{todays_date}.json" - - JsonPP.savings_to_json(all_products, file_name) + options = {"directory": DATA_FOLDER, "filename": f"{this_file}-{todays_date}.json", "mode": "json"} + MetadataPP(all_products, options=options).run() if __name__ == "__main__": diff --git a/rewe_dl/examples/discounted_to_sql.py b/rewe_dl/examples/discounted_to_sql.py index 18e6b4b..8089449 100644 --- a/rewe_dl/examples/discounted_to_sql.py +++ b/rewe_dl/examples/discounted_to_sql.py @@ -21,7 +21,9 @@ def main(): - discounted_products = STORE().get_discounted_products() + my_store = STORE(store_id="8534540") + + discounted_products = my_store.get_discounted_products() all_products = Parser().parse_search_results_products(discounted_products) diff --git a/rewe_dl/examples/raw_responses_to_json.py b/rewe_dl/examples/raw_responses_to_json.py new file mode 100644 index 0000000..3b03a66 --- /dev/null +++ b/rewe_dl/examples/raw_responses_to_json.py @@ -0,0 +1,47 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +# Copyright 2023-2024 Allen Dema +from __future__ import annotations + +import os +import sys +import logging +from pathlib import Path +from datetime import datetime + +PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) +PROJECT_ROOT = os.path.dirname(PROJECT_DIR) +DATA_FOLDER = os.path.join(os.path.dirname(PROJECT_ROOT), "data") + +sys.path.append(PROJECT_ROOT) + +from rewe import STORE +from parser import Parser +from postprocessor.metadata import MetadataPP + +log = logging.getLogger(__name__) + + +def main(): + my_store = STORE(store_id="8534540") + query = "ja" + + todays_date = datetime.today().strftime("%Y-%m-%d") + this_file = Path(__file__).stem + + paginated = list(my_store.search(query, max_page=1)) + + for page, response in enumerate(paginated, 1): + options = { + "directory": DATA_FOLDER, + "filename": f"{this_file}-{query}-{page:02}-{todays_date}.json", + "mode": "json", + "ident": 4, + } + + MetadataPP(response, options=options).run() + + +if __name__ == "__main__": + main() diff --git a/rewe_dl/postprocessor/metadata.py b/rewe_dl/postprocessor/metadata.py index fe2c855..a77dde9 100644 --- a/rewe_dl/postprocessor/metadata.py +++ b/rewe_dl/postprocessor/metadata.py @@ -5,10 +5,16 @@ import os import sys import json +import types +import logging from pathlib import Path +from postprocessor.common import PostProcessor -class MetadataPP: +log = logging.getLogger(__name__) + + +class MetadataPP(PostProcessor): """stripped down and modified from gallery-dl""" def __init__(self, kwdict, options): @@ -40,14 +46,18 @@ def _initialize_formatter(self): self.directory.mkdir(parents=True, exist_ok=True) if self.filename: - self.filename = Path(self.filename).resolve().absolute() + # avoid using '.resolve().absolute()' here - wrong 'join' in '_run()' if self.filename and not self.directory: self.directory = os.path.dirname(self.filename) os.makedirs(self.directory, exist_ok=True) - def json_default(obj): - if isinstance(obj, None): + def json_default(self, obj): + if isinstance(obj, types.NoneType): return None + + if isinstance(obj, types.GeneratorType): + return list(obj) + return str(obj) def _make_encoder(self): @@ -66,12 +76,14 @@ def _write_custom(self, fp, kwdict): def _write_json(self, fp, kwdict): fp.write(self._json_encode(kwdict) + "\n") - def _run_file(self, kwdict): - path = Path(self.directory, self.filename) + def _run(self, kwdict): + path = Path(self.directory) / self.filename path.parent.mkdir(parents=True, exist_ok=True) with open(path, self.open_mode, encoding=self.encoding) as fp: self.writer(fp, kwdict) + log.info(f"Wrote to file: {path}") + def run(self): - return self._run_file(self.kwdict) + return self._run(self.kwdict) diff --git a/rewe_dl/postprocessor/output.py b/rewe_dl/postprocessor/output.py index b2512a1..55cb9de 100644 --- a/rewe_dl/postprocessor/output.py +++ b/rewe_dl/postprocessor/output.py @@ -22,6 +22,7 @@ class JsonPP(PostProcessor): def __init__(self, md_list, options): PostProcessor.__init__(self, md_list, options) + self.log.warning("USE metadata.MetadataPP!") @staticmethod def to_json(md: dict = None, file_name: str = None): diff --git a/rewe_dl/utils.py b/rewe_dl/utils.py index 15eb67c..35b1e98 100644 --- a/rewe_dl/utils.py +++ b/rewe_dl/utils.py @@ -9,21 +9,13 @@ import locale import logging from random import choice -from functools import partial - -import httpx - -log = logging.getLogger(__name__) PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(PROJECT_DIR) import exception -global YELLOW -global RED -YELLOW = "\033[1;32;40m" -RED = "\033[31m" +log = logging.getLogger(__name__) def create_agents() -> dict: @@ -69,7 +61,7 @@ def save_to_json(json_data: dict, file_name: str, indent=4, mode="w") -> None: else: raise ValueError("json_data must be a dict or a list of dicts!") except (IOError, OSError) as e: - return str(e) + log.error(str(e)) def save_to_jsonl(json_data: dict, file_name: str) -> None: @@ -91,78 +83,7 @@ def save_to_jsonl(json_data: dict, file_name: str) -> None: raise ValueError("json_data must be a dict or a list of dicts!") -def _htmlentity_transform(entity_with_semicolon): - """Transforms an HTML entity to a character.""" - # mod from yt-dlp - import html - import contextlib - - entity = entity_with_semicolon[:-1] - - # Known non-numeric HTML entity - if entity in html.entities.name2codepoint: - return chr(html.entities.name2codepoint[entity]) - - # TODO: HTML5 allows entities without a semicolon. - # E.g. 'Éric' should be decoded as 'Éric'. - if entity_with_semicolon in html.entities.html5: - return html.entities.html5[entity_with_semicolon] - - mobj = re.match(r"#(x[0-9a-fA-F]+|[0-9]+)", entity) - if mobj is not None: - numstr = mobj.group(1) - if numstr.startswith("x"): - base = 16 - numstr = "0%s" % numstr - else: - base = 10 - # See https://github.com/ytdl-org/youtube-dl/issues/7518 - with contextlib.suppress(ValueError): - return chr(int(numstr, base)) - - # Unknown entity in name, return its literal representation - return "&%s;" % entity - - -def unescapeHTML(s): - """https://github.com/ytdl-patched/ytdl-patched/blob/8522226d2fea04d48802a9ef402438ff79227fe4/yt_dlp/utils.py#L826""" - if s is None: - return None - assert isinstance(s, str) - - return re.sub(r"&([^&;]+;)", lambda m: _htmlentity_transform(m.group(1)), s) - - -def clean_html(html): - """Clean an HTML snippet into a readable string""" - import re - - # mod from https://github.com/ytdl-patched/ytdl-patched/blob/8522226d2fea04d48802a9ef402438ff79227fe4/yt_dlp/utils.py#L580 - if html is None or not isinstance(html, str): # Convenience for sanitizing descriptions etc. - return html - - html = re.sub(r"\s+", " ", html) - html = re.sub(r"(?u)\s?<\s?br\s?/?\s?>\s?", "\n", html) - html = re.sub(r"(?u)<\s?/\s?p\s?>\s?<\s?p[^>]*>", "\n", html) - # Strip html tags - html = re.sub("<.*?>", "", html) - # Replace html entities - html = unescapeHTML(html) - return html.strip() - - -def escapeHTML(text): - # from https://github.com/ytdl-patched/ytdl-patched/blob/8522226d2fea04d48802a9ef402438ff79227fe4/yt_dlp/utils.py#L835 - return ( - text.replace("&", "&") - .replace("<", "<") - .replace(">", ">") - .replace('"', """) - .replace("'", "'") - ) - - -def read_file(file_name: str): +def read_file(file_name: str) -> list: with open(file_name) as file: data = file.readlines() file.close() @@ -187,9 +108,10 @@ def append_to_file(content, file_name: str) -> None: def slugify(value): - """# https://github.com/mikf/gallery-dl/blob/master/gallery_dl/text.py#L42C1-L50C1 + """ Convert a string to a URL slug + # https://github.com/mikf/gallery-dl/blob/master/gallery_dl/text.py#L42C1-L50C1 Adapted from: https://github.com/django/django/blob/master/django/utils/text.py """ @@ -212,5 +134,5 @@ def load_config(config_path: str = None) -> dict: @staticmethod -def json_compact(obj): +def json_compact(obj) -> dict: return json.dumps(obj, separators=(",", ":"), sort_keys=True)