Giter Club home page Giter Club logo

kroger-cli's Introduction

Kroger CLI

Display Purchases Summary

The idea of the project is to create a command line utility that can automate certain tasks on the Kroger's website.

At this moment the application can:

The script works on kroger.com and other Kroger-owned grocery stores (Ralphs, Fry's, Fred Meyer, Dillons, Food 4 Less, etc).

Install/Download

Windows

You can download the latest version from the GitHub's releases tab.

Linux

  • Clone the repository: git clone [email protected]:Shmakov/kroger-cli.git && cd ./kroger-cli
  • Creating virtual environment: python3.8 -m venv ./venv (you might need to install sudo apt-get install python3.8-venv)
  • And activate it: source venv/bin/activate
  • Install the requirements: pip install -r requirements.txt
  • And you should be able to launch the project: python -m kroger_cli

CLI Commands

The application support non-interactive mode by passing a name of a command. An example on how to complete Kroger's Survey: kroger-cli survey.

Please use kroger-cli --help to see list of all available commands. Alternatively you can run the application without any command to launch the interactive mode (you can see the screenshot of it below).

Screenshots

Main Interface

Kroger CLI Screenshot

Clip Digital Coupons

Clip all Kroger's Digital Coupons

Purchases Summary

Display Purchases Summary

Fuel Points Balance

Fuel Points Balance

Complete Kroger's Feedback Form

Watch

Side Notes

The initial plan was to use plain HTTP (and requests package), however I couldn't sign in to the Kroger's website using it. Possibly had to do with csrf token validation and/or JavaScript-based protection. Because of that I had to use pyppeteer, which is a python's port of Puppeteer (Headless Chrome).

TODO

  • Purchased items (receipt data) Excel export, which could be useful for budgeting/categorization/filtering
  • Notification on when certain items go on sale

kroger-cli's People

Contributors

shmakov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.