feat: add custom extractor for blisterreview.com (#299)
parent
d9a1e7b22b
commit
83d1c2401b
File diff suppressed because one or more lines are too long
@ -0,0 +1,55 @@
|
||||
export const BlisterreviewComExtractor = {
|
||||
domain: 'blisterreview.com',
|
||||
|
||||
title: {
|
||||
selectors: [['meta[name="og:title"]', 'value'], 'h1.entry-title'],
|
||||
},
|
||||
|
||||
author: {
|
||||
selectors: ['span.author-name'],
|
||||
},
|
||||
|
||||
date_published: {
|
||||
selectors: [
|
||||
['meta[name="article:published_time"]', 'value'],
|
||||
['time.entry-date', 'datetime'],
|
||||
['meta[itemprop="datePublished"]', 'content'],
|
||||
],
|
||||
},
|
||||
|
||||
dek: {
|
||||
selectors: [
|
||||
// enter selectors
|
||||
],
|
||||
},
|
||||
|
||||
lead_image_url: {
|
||||
selectors: [
|
||||
['meta[name="og:image"]', 'value'],
|
||||
['meta[property="og:image"]', 'content'],
|
||||
['meta[itemprop="image"]', 'content'],
|
||||
['meta[name="twitter:image"]', 'content'],
|
||||
['img.attachment-large', 'src'],
|
||||
],
|
||||
},
|
||||
|
||||
content: {
|
||||
selectors: [
|
||||
[
|
||||
'.elementor-section-wrap',
|
||||
'.elementor-text-editor > p, .elementor-text-editor > ul > li, .attachment-large, .wp-caption-text',
|
||||
],
|
||||
],
|
||||
|
||||
// Is there anything in the content you selected that needs transformed
|
||||
// before it's consumable content? E.g., unusual lazy loaded images
|
||||
transforms: {
|
||||
figcaption: 'p',
|
||||
},
|
||||
|
||||
// Is there anything that is in the result that shouldn't be?
|
||||
// The clean selectors will remove anything that matches from
|
||||
// the result
|
||||
clean: ['.comments-area'],
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue