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.
31 lines
786 B
JavaScript
31 lines
786 B
JavaScript
export const ClinicaltrialsGovExtractor = {
|
|
domain: 'clinicaltrials.gov',
|
|
|
|
title: {
|
|
selectors: ['h1.tr-solo_record'],
|
|
},
|
|
|
|
author: {
|
|
selectors: ['div#sponsor.tr-info-text'],
|
|
},
|
|
|
|
date_published: {
|
|
// selectors: ['span.term[data-term="Last Update Posted"]'],
|
|
selectors: ['div:has(> span.term[data-term="Last Update Posted"])'],
|
|
timezone: 'UTC',
|
|
},
|
|
|
|
content: {
|
|
selectors: ['div#tab-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: ['.usa-alert> img'],
|
|
},
|
|
};
|