/google-shopping-list

Scrapes the shopping list from shoppinglist.google.com as Google does not seem to have an API for this.

Primary LanguageJavaScript

Google Shopping List

Scrapes the shopping list from shoppinglist.google.com as Google does not seem to have an API for this.

It is recommened to make a new Google account, share your shopping list and make it the primary list. Make sure not to set any extra security features other than a password, this will cause the script to break.

Usage

const googleshoppinglist = require('google-shopping-list');

let creds = {
	email: 'email',
	password: 'password'
};

googleshoppinglist.getList(creds).then(res => {
	console.log(res);
});

API

googleshoppinglist.getList(credentials[, options])

  • credentials <Object>

    • email <string> A Google email
    • password <string> The password for your google email
  • options <Object>

    • cookies <boolean> Will store the cookies from the first session in a json file and use them in consequent connections until they expire. This speeds up the return. Defaults to false
  • returns: <Promise<Array>> Promise which resolves an array containing the list items

Dependencies

puppeteer fs-extra" winston