==========================================
At this special moment, many of us are buying food online. If you have experienced difficulty in checking out your shopping carts because of stock / delivery issues, you may end up keeping refreshing some web pages manually all the time. This is time consuming and exhausting. This project presents a simple tool to automate it. You drop items in the shopping carts and leave the checkout to the machine.
Create the docker container:
$ docker run -it --shm-size 2g --name crazy-shopping yijinliu/crazy-shopping:2020-04-08
Inside the container:
$ git clone https://github.com/YijinLiu/crazy-shopping $ cd crazy-shopping
Add products to your cart and run following command in the container:
$ ./wholefood.py --email "xxxx@yyyy" --password "zzzz"
To build a new docker image:
$ make
To be able to run in non headless mode:
$ docker run -it -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/snd --shm-size 2g --name crazy-shopping yijinliu/crazy-shopping:2020-04-08