Skip to content

Commit

Permalink
release: 2.2.1 (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
JadTermsani committed Sep 8, 2021
1 parent 8c99822 commit 0ccb91a
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 6 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,20 @@
# Mercury Parser Changelog

### 2.2.1 (Sept 08, 2020)

##### Commits

- [[`8c9982247b`](https://github.com/postlight/mercury-parser/commit/8c9982247b)] - **feat**: Ladbible.com extractor (#624) (Nitin Khanna)
- [[`30d6f472ee`](https://github.com/postlight/mercury-parser/commit/30d6f472ee)] - **feat**: Times of India extractor (#503) (Nitin Khanna)
- [[`c15f4f5c3e`](https://github.com/postlight/mercury-parser/commit/c15f4f5c3e)] - chore(deps): bump lodash from 4.17.2 to 4.17.21 (#612) (dependabot[bot])
- [[`b8b90afa95`](https://github.com/postlight/mercury-parser/commit/b8b90afa95)] - chore(deps): bump handlebars from 4.1.2 to 4.7.6 (#583) (dependabot[bot])
- [[`38fb3204f5`](https://github.com/postlight/mercury-parser/commit/38fb3204f5)] - **chore**: remove greenkeeper configs (#580) (Jad Termsani)
- [[`a5a066c69d`](https://github.com/postlight/mercury-parser/commit/a5a066c69d)] - **chore**: update node version (#579) (Jad Termsani)
- [[`b0e708aac6`](https://github.com/postlight/mercury-parser/commit/b0e708aac6)] - **feat**: update nytimes extractor (#506) (Wajeeh Zantout)
- [[`3fb8526c4a`](https://github.com/postlight/mercury-parser/commit/3fb8526c4a)] - chore(package): update ora to version 4.0.0 (#500) (greenkeeper[bot])
- [[`3009ecf137`](https://github.com/postlight/mercury-parser/commit/3009ecf137)] - fix(package): update yargs-parser to version 14.0.0 (#495) (greenkeeper[bot])
- [[`c5c000586d`](https://github.com/postlight/mercury-parser/commit/c5c000586d)] - **release**: 2.2.0 (#496) (Michael Ashley)

### 2.2.0 (Sept 10, 2019)

##### Commits
Expand Down
57 changes: 53 additions & 4 deletions dist/mercury.js
Expand Up @@ -1888,13 +1888,13 @@ var TwitterExtractor = {
var NYTimesExtractor = {
domain: 'www.nytimes.com',
title: {
selectors: ['h1.g-headline', 'h1[itemprop="headline"]', 'h1.headline']
selectors: ['h1.g-headline', 'h1[itemprop="headline"]', 'h1.headline', 'h1 .balancedHeadline']
},
author: {
selectors: [['meta[name="author"]', 'value'], '.g-byline', '.byline']
selectors: [['meta[name="author"]', 'value'], '.g-byline', '.byline', ['meta[name="byl"]', 'value']]
},
content: {
selectors: ['div.g-blocks', 'article#story'],
selectors: ['div.g-blocks', 'section[name="articleBody"]', 'article#story'],
transforms: {
'img.g-lazy': function imgGLazy($node) {
var src = $node.attr('src');
Expand Down Expand Up @@ -5767,6 +5767,53 @@ var EpaperZeitDeExtractor = {
}
};

var WwwLadbibleComExtractor = {
domain: 'www.ladbible.com',
title: {
selectors: ['h1']
},
author: {
selectors: ['[class*=Byline]']
},
date_published: {
selectors: ['time'],
timezone: 'Europe/London'
},
lead_image_url: {
selectors: [['meta[name="og:image"]', 'value']]
},
content: {
selectors: ['[class*=ArticleContainer]'],
clean: ['time', 'source', 'a[href^="https://www.ladbible.com/"]', 'picture', '[class*=StyledCardBlock]']
}
};

var TimesofindiaIndiatimesComExtractor = {
domain: 'timesofindia.indiatimes.com',
title: {
selectors: ['h1']
},
extend: {
reporter: {
selectors: ['div.byline'],
transforms: {}
}
},
date_published: {
selectors: ['.byline'],
format: 'MMM D, YYYY, HH:mm z',
timezone: 'Asia/Kolkata'
},
lead_image_url: {
selectors: [['meta[name="og:image"]', 'value']]
},
content: {
selectors: ['div.contentwrapper:has(section)'],
defaultCleaner: false,
clean: ['section', 'h1', '.byline', '.img_cptn']
}
};



var CustomExtractors = /*#__PURE__*/Object.freeze({
Expand Down Expand Up @@ -5903,7 +5950,9 @@ var CustomExtractors = /*#__PURE__*/Object.freeze({
WwwPhoronixComExtractor: WwwPhoronixComExtractor,
PitchforkComExtractor: PitchforkComExtractor,
BiorxivOrgExtractor: BiorxivOrgExtractor,
EpaperZeitDeExtractor: EpaperZeitDeExtractor
EpaperZeitDeExtractor: EpaperZeitDeExtractor,
WwwLadbibleComExtractor: WwwLadbibleComExtractor,
TimesofindiaIndiatimesComExtractor: TimesofindiaIndiatimesComExtractor
});

var Extractors = _Object$keys(CustomExtractors).reduce(function (acc, key) {
Expand Down
2 changes: 1 addition & 1 deletion dist/mercury.web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@postlight/mercury-parser",
"version": "2.2.0",
"version": "2.2.1",
"description": "Mercury transforms web pages into clean text. Publishers and programmers use it to make the web make sense, and readers use it to read any web article comfortably.",
"author": "Postlight <mercury@postlight.com>",
"homepage": "https://mercury.postlight.com",
Expand Down

0 comments on commit 0ccb91a

Please sign in to comment.