huths0lo / SavonPython

A tool to automate coupon clippings
MIT License
11 stars 2 forks source link

Expanding the application to other chains #1

Open Sargeanthost opened 11 months ago

Sargeanthost commented 11 months ago

Hey, great stuff! I was thinking of doing this with other chains and comparing prices across them. Eventually this would be something like a program where you can put in your location, and search for shopping list items to get the cheapest deals closest to you. Would you have interest in expanding to something like this?

huths0lo commented 11 months ago

This was my main reason for working it out in native python, instead of using something like seleneum. I didnt want a bunch of complex dependencies. It should be easy to adjust for any of their other brand sites. And more importantly, its probably easy to adjust for any other site that uses this methodology.

I think my next iteration will store the cookies between uses. This way it doesnt have to log on each time. That should mitigate being blacklisted. And I'll probably store this in sql lite, so it wouldnt require more than a couple of basic modules. I think if I instruct it to set a random amount of time between cycles, it would be nearly impossible for the far side to detect it as a non human interaction.

Sargeanthost commented 11 months ago

Cool, I'll take a more in depth look at the code when I have time. Ill probably try to make it work with Price Chopper first. Is there any specific architect you want to structure the code for handling different chains with?

huths0lo commented 11 months ago

I'll put some thought to that. I'd say for now, just create two new files. One for the initiate logon, and one for the actual purpose of the app (clip the coupons in my case). In the near term, I'll probably work on creating a setup script, where a person can choose from the options that help them. And that will in turn set variables in their env file. With those set, the next run, will just run the components that they require.

On Fri, Dec 8, 2023 at 11:00 AM Carlos @.***> wrote:

Cool, I'll take a more in depth look at the code when I have time. Ill probably try to make it work with Price Chopper first. Is there any specific architect you want to structure the code for handling different chains with?

— Reply to this email directly, view it on GitHub https://github.com/huths0lo/SavonPython/issues/1#issuecomment-1847675174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZQAMGCI3NTXGNVM374PPTYINPUFAVCNFSM6AAAAABAMBF6EOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGY3TKMJXGQ . You are receiving this because you commented.Message ID: @.***>

huths0lo commented 11 months ago

Wanted to post an update. I believe I can work through making it so one time passcodes are viable. I was going to use sqlite3, but I may press ahead and just use postgres. If I can do this, it would mean this tool could bolt in to any situation.