google-shopping-list
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -78,3 +78,4 @@ const puppeteer = require('puppeteer'), | ||
allItems.forEach(res => items.push(res.innerHTML.trim())); // Must use a forEach as it is a nodeList not an array, convert to array | ||
items.pop(); // Removes last element from array as it is not a list item | ||
// If the end of array is the 'checked off' list item remove it | ||
if(items[items.length - 1].includes("checked off")) items.pop(); | ||
return items; | ||
@@ -81,0 +82,0 @@ }, SHOPPINGLIST_ITEMS) ); |
{ | ||
"name": "google-shopping-list", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Scrapes the shopping list from shoppinglist.google.com as Google does not seem to have an API for this.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8191
144