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.
const googleshoppinglist = require('google-shopping-list');
let creds = {
email: 'email',
password: 'password'
};
googleshoppinglist.getList(creds).then(res => {
console.log(res);
});
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