Skip to content

dzhang32/autogroceries

Repository files navigation

autogroceries

Lifecycle: experimental ci PyPI

The goal of autogroceries is to automate your weekly grocery shop (from Sainsbury's).

Installation

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

Usage

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

Credits

autogroceries was created with cookiecutter and the py-pkgs-cookiecutter template.

About

Automate your grocery shop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages