Automate your grocery shop
Project description
autogroceries
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 = ["tomatoes", "lemon"]
n_ingreds = [1, 2]
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")
An example of autogroceries
in action:
Credits
autogroceries
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autogroceries-1.0.1.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for autogroceries-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8aab19c3c2cc5e5e91a083bdadcba98cd2f07212d0271c44ce39deb51951e1 |
|
MD5 | eddc51b60720c3646d2d5e08fb01260c |
|
BLAKE2b-256 | 0534dfe92b2ea684beb0f4d7968ab47209418ca3f59ff3557af14bdec6d59e53 |