Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
navi1995 committed Sep 18, 2020
1 parent 9ab4a1d commit 828da99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions 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
Expand Down
6 changes: 4 additions & 2 deletions index.js
Expand Up @@ -3,8 +3,10 @@ const fetch = require('node-fetch');
const URL_PREFIX = 'https://chrome.google.com/webstore/detail/';
const REGEX_NAME = '<meta itemprop="name" content="([^"]*)"/>';
const REGEX_INSTALL_COUNT = '<Attribute name="user_count">([0-9]*)</Attribute>';
const REGEX_RATING_COUNT = '<meta itemprop="ratingCount" content="([0-9]*)"/>';
const REGEX_RATING_VALUE = '<meta itemprop="ratingValue" content="([0-9.]*)"/>';
const REGEX_RATING_COUNT = '([0-9]*) users rated this';
const REGEX_RATING_VALUE = 'Average rating ([0-9.]*) out of 5.';
// const REGEX_RATING_COUNT = '<meta itemprop="ratingCount" content="([0-9]*)"/>'; //No longer scrapeable
// const REGEX_RATING_VALUE = '<meta itemprop="ratingValue" content="([0-9.]*)"/>'; //No longer scrapeable
//Credit to https://github.com/petasittek/chrome-web-store-stats/ for regex above
const REGEX_EXTENSIONID = /[a-z]{32}$/;

Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down

0 comments on commit 828da99

Please sign in to comment.