diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b340b..714a5ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.0.4] (2020-07-21) +### Features +* Fix scraping of pages for all values. ## [1.0.4] (2020-07-21) ### Features diff --git a/index.js b/index.js index e9bfdd8..93d745a 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,10 @@ const fetch = require('node-fetch'); const URL_PREFIX = 'https://chrome.google.com/webstore/detail/'; const REGEX_NAME = ''; const REGEX_INSTALL_COUNT = '([0-9]*)'; -const REGEX_RATING_COUNT = ''; -const REGEX_RATING_VALUE = ''; +const REGEX_RATING_COUNT = '([0-9]*) users rated this'; +const REGEX_RATING_VALUE = 'Average rating ([0-9.]*) out of 5.'; +// const REGEX_RATING_COUNT = ''; //No longer scrapeable +// const REGEX_RATING_VALUE = ''; //No longer scrapeable //Credit to https://github.com/petasittek/chrome-web-store-stats/ for regex above const REGEX_EXTENSIONID = /[a-z]{32}$/; diff --git a/package.json b/package.json index 99723ea..7eda6c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrome-webstore-stats", - "version": "1.0.5", + "version": "1.0.6", "description": "Fetch stats from Chrome webstore page", "main": "index.js", "scripts": {