You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mercury-parser/src/extractors/custom/www.phoronix.com/index.js

36 lines
785 B
JavaScript

export const WwwPhoronixComExtractor = {
domain: 'www.phoronix.com',
title: {
selectors: ['article h1', 'article header'],
},
author: {
selectors: ['.author a:first-child'],
},
date_published: {
selectors: ['.author'],
// 1 June 2019 at 08:34 PM EDT
format: 'D MMMM YYYY [at] hh:mm A',
timezone: 'America/New_York',
},
dek: null,
lead_image_url: null,
content: {
selectors: ['.content'],
// 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: [],
},
};