UNPKG

defuddle

Version:

Extract article content and metadata from web pages.

16 lines (15 loc) 552 B
import { DefuddleMetadata, MetaTagItem } from './types'; export declare class MetadataExtractor { static extract(doc: Document, schemaOrgData: any, metaTags: MetaTagItem[]): DefuddleMetadata; private static getAuthor; private static getSite; private static getTitle; private static cleanTitle; private static getDescription; private static getImage; private static getFavicon; private static getPublished; private static getMetaContent; private static getTimeElement; private static getSchemaProperty; }