safeway-coupons
Automatic coupon clipper for Safeway and other Albertsons brands' online "for U" coupons
safeway-coupons is a tool that will log in to an Albertsons brand store account (such as Safeway), and attempt to select all of the "for U" electronic coupons on the site so they don't have to each be clicked manually.
See the documentation site for full project details!
Supported store brands
The web sites for all Albertsons brands (including Safeway) use the same platform, so coupon clipping works the same way on each. safeway-coupons supports the following Albertsons brands:
Acme, Albertsons Market, Albertsons, Amigos, Andronico's, Balducci's, Carrs, Haggen, Jewel-Osco, Kings, Market Street, Pavilions, Randalls, Safeway, Shaw's, Star Market, Tom Thumb, United Supermarkets, Vons
Quick start
PyPI package
Ensure Google Chrome is installed.
uv tool install safeway-coupons
pipx install safeway-coupons
Configure a store account (account-name is a label you choose, such as main
or test):
safeway-coupons accounts add safeway account-name my.account.email@example.com
Sign in interactively, using a multi-factor authentication (MFA) code if prompted:
safeway-coupons --login-only
Clip all coupons:
safeway-coupons
Docker Compose
Set up Docker Compose using the sample compose.yaml.
Configure a store account (account-name is a label you choose, such as main
or test):
docker compose run --rm safeway-coupons accounts add safeway account-name my.account.email@example.com
Sign in interactively, using a multi-factor authentication (MFA) code if prompted:
docker compose run --rm safeway-coupons --login-only
Start the service to clip coupons on a schedule:
docker compose up -d
When run with no arguments, the container runs the service to clip coupons on a
schedule. To clip all coupons on demand, run with at least one argument (such as
-n/--no-notify):
docker compose run --rm safeway-coupons --no-notify
Further information
See the documentation site for full project details!
Design notes
Google Chrome is used to complete the sign in process. To reduce how often sign in prompts for multi-factor authentication (MFA) verification codes, a persistent browser profile directory is created for each configured store account and is reused for logins with the same account.
Once a signed in session is established, coupon clipping is performed using HTTP requests via requests.
The store sign in page is protected by a web application firewall (WAF). Sign in may fail based on your IP's reputation, either by presenting an interactive challenge (such as a captcha) or denying sign in attempts altogether. safeway-coupons can't complete these interactive challenges.
License
Copyright (C) 2012 Stephen Kent and contributors
Licensed under the GNU General Public License v3.0 or later
(GPL-3.0-or-later).
Project template
This project is based on and maintained with copier-project.
Metadata
Release files for safeway-coupons 0.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| safeway_coupons-0.14.0.tar.gz | 68.1 kB | With provenance | Details for safeway_coupons-0.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| safeway_coupons-0.14.0-py3-none-any.whl | Python 3 | none | any | Details for safeway_coupons-0.14.0-py3-none-any.whl |
Total release size: 119.7 kB
Release files / safeway_coupons-0.14.0.tar.gz
| Download URL | safeway_coupons-0.14.0.tar.gz |
|---|---|
| Size | 68.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55c62d2a5fcfa2dd595ca139c5e92b004f6ab7bc1c47e3b946e753f056395619
|
|
BLAKE2b-256 checksum How to use checksums |
f26fcf2ce5abf1db8e813780d32363279d8c61c3b1b2765254526f38c2ae1a2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / safeway_coupons-0.14.0-py3-none-any.whl
| Download URL | safeway_coupons-0.14.0-py3-none-any.whl |
|---|---|
| Size | 51.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a380e6d5b73261b04eea89a64ce82f3637454a7096ead960f1efbdd00c1e8eeb
|
|
BLAKE2b-256 checksum How to use checksums |
23f7d5ab1072dfcb9ba92a3af7966a3df4000ffc37c8c4322ee9d3145d7bc09e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for safeway-coupons 0.14.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for safeway_coupons-0.14.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.