The goal of autogroceries
is to automate your weekly grocery shop (from Sainsbury's).
autogroceries
was developed for for personal use and is no longer under active development. You can install the development version from pypi
:
pip install autogroceries
autogroceries
uses Selenium to interface with the Sainsbury's website, automatically filling your cart with an inputted list of ingredients.
The below illustrates the minimal config required to run autogroceries
.
from autogroceries.shopper import SainsburysShopper
ingreds = ["cereal", "tomatoes", "lemon", "salad", "grapefruit"]
n_ingreds = [1, 1, 2, 1, 3]
sb = SainsburysShopper(ingreds, n_ingreds)
# SainsburysShopper needs Sainsbury's grocery account username/email and password
# for security, it's recommended to load these from a file
# rather than inputting your credentials directly
shopping_list = sb.shop("UN", "PW")
autogroceries.mp4
autogroceries
was created with cookiecutter
and the py-pkgs-cookiecutter
template.