kacpi2442 / am_bot

Using the toogoodtogo and foodsi APIs to notify me via a Telegram bot for open offers
39 stars 19 forks source link

New function proposal #14

Closed swiezaczek closed 1 year ago

swiezaczek commented 1 year ago

For quickly dissapearing items.

This two combined together would allow the user to use the script to scrap favourites every second for short time (ex. when the bags are usually released and still avoid ban) , reserve it and send link of payment page by notification (saves time on clicking-better chance to hunt quickly dissapearing, popular bags). Doable? So we would need:

  1. Automatic reservation (but not necessarily payment on Paypal, because it would be too complex) and sending payment link through telegram notification.

  2. Ability to set specific time during which script is working and looking for favorites or specific items . For example I can run two or more instances of your bot, but each with different settings. First one scrapping all shops all the time and with reasonable interval thats under antiscrapping radar of TGTG, and the other instance - scraping with 1s interval for favourites, but only for few minutes when the favourite and quickly disappearing bag is usually released,

EDIT

Ad.1. Here was some work done towards autoreserve, but I don't know how to add it to the script and if its fully functional: maxux's watcher Also here someone made an attempt to reverse enineer the api Ad.2. I've checked the functions of schedule, but I am not sure if it is possible to do it very easily. I will try in my free time, however it would be nice if you could give me any clue on how to do it.

From this two the first one is more important, as user can run (favorite scrapper) script manually (even remotely) when needed.

swiezaczek commented 1 year ago

I am also trying to understand any of it: https://www.toptal.com/back-end/reverse-engineering-the-private-api-hacking-your-couch