Skip to content
1 min read · 247 words

Interface: ScrapperArticle

Defined in: src/batteries/tools/scrapper/index.ts:203

A normalised Scrapper article (loose/nullable upstream).

Properties

PropertyTypeDescriptionDefined in
byline?stringAuthor / byline metadata.src/batteries/tools/scrapper/index.ts:209
content?stringProcessed article HTML; present when the caller requested it.src/batteries/tools/scrapper/index.ts:225
date?stringScrapper's own date field for the result.src/batteries/tools/scrapper/index.ts:221
excerpt?stringShort excerpt or description of the article.src/batteries/tools/scrapper/index.ts:211
fullContent?stringFull page HTML; present only when full_content was set.src/batteries/tools/scrapper/index.ts:227
lang?stringDetected content language.src/batteries/tools/scrapper/index.ts:215
length?numberCharacter count of the extracted article text.src/batteries/tools/scrapper/index.ts:217
publishedTime?stringPublication time, when the page exposed one.src/batteries/tools/scrapper/index.ts:219
screenshotUri?stringScreenshot URI; present only when screenshot was set.src/batteries/tools/scrapper/index.ts:229
siteName?stringName of the site the article came from.src/batteries/tools/scrapper/index.ts:213
textContent?stringArticle text with HTML stripped.src/batteries/tools/scrapper/index.ts:223
title?stringArticle title.src/batteries/tools/scrapper/index.ts:207
url?stringThe page URL the article was extracted from.src/batteries/tools/scrapper/index.ts:205