google-shopping-list
v1.0.3
Published
Scrapes the shopping list from shoppinglist.google.com as Google does not seem to have an API for this.
Downloads
20
Readme
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.
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>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 tofalse
returns: <Promise<Array>> Promise which resolves an array containing the list items