Skip to content

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

Notifications You must be signed in to change notification settings

Maximillion195/google-shopping-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published