feat: add postlight.com custom extractor (#695)
parent
39b9ff55c4
commit
8ca8a5f7e5
File diff suppressed because one or more lines are too long
@ -0,0 +1,36 @@
|
||||
export const PostlightComExtractor = {
|
||||
domain: 'postlight.com',
|
||||
|
||||
title: {
|
||||
selectors: [['meta[name="og:title"]', 'value']],
|
||||
},
|
||||
|
||||
author: {
|
||||
selectors: [['meta[name="parsely-author"]', 'value']],
|
||||
},
|
||||
|
||||
date_published: {
|
||||
selectors: [['meta[name="article:published_time"]', 'value']],
|
||||
},
|
||||
|
||||
dek: {
|
||||
selectors: ['h2.single-hero__abstract'],
|
||||
},
|
||||
|
||||
lead_image_url: {
|
||||
selectors: [['meta[name="og:image"]', 'value']],
|
||||
},
|
||||
|
||||
content: {
|
||||
selectors: ['article.body'],
|
||||
|
||||
// Is there anything in the content you selected that needs transformed
|
||||
// before it's consumable content? E.g., unusual lazy loaded images
|
||||
transforms: {},
|
||||
|
||||
// Is there anything that is in the result that shouldn't be?
|
||||
// The clean selectors will remove anything that matches from
|
||||
// the result
|
||||
clean: ['section.pl-post-link'],
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue