A simple tool to clip Safeway grocery coupons!
Originally this project used the Chrome Webdriver for Selenium instances. Given chromes updates, and fighting toggling auto update off constantly, I have migrated to using the Gecko Driver with Firefox. The minimum verion of Gecko Driver is 26.
That said, using the -driver chrome
argument will use the Chrome webdriver. This was lasted tested
using Chrome Driver version 101.
- The latest Chrome Driver can be downloaded from Chromium
- The latest Gecko Driver can be downloaded from the Mozilla GitHub
Once downloaded, place the Gecko Driver or Chrome Driver in the ./webdrivers/
directory. Format
the name as geckodriver-##
Alternatively you can modify the get_webdriver()
function in clipper.py
to point to the location
you have chosen.
To help not spam the Safeway website with my login and coupon checks, I allow a cron to run the
clipper.py
script at 2am every day to complete the "automation" portion of the script.
Running clipper.py
will require a web driver (see above), and I reccomend using the
python -m pip install -r requirements.txt
command to install the other needed packages.
- Make sure the Chrome Driver suffix matches the
MIN_CHROME_DRIVER_VERSION
variable - on M1 Macs, control click the webdriver to authenticate and work around Apple Security Issues
- More information here: Apple can’t check app for malicious software