release: 2.2.1 (#631)

pull/649/head v2.2.1
Jad Termsani 3 years ago committed by GitHub
parent 8c9982247b
commit 0ccb91a487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

57
dist/mercury.js vendored

@ -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');
@ -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({
@ -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) {

File diff suppressed because one or more lines are too long

@ -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",

Loading…
Cancel
Save