Research Agent
Overview IntroExtract structured content and cite from any URL GETSearch the web GETGenerate language model reply using agent prompts POSTOverview Intro
Modules
Extract AuthorExtract CiteExtract SourceExtract TitleHuman Names RecognizeMetadata To CiteUrl To Domain
Research Agent
FunctionsExtractorHtml to cite

Extract Source

ai-research-agent / extractor/html-to-cite/extract-source

extractSource()

function extractSource(document: Document): any;

Defined in: src/extractor/html-to-cite/extract-source.js:8

Extract source from document using common class names

Parameters

ParameterTypeDescription

document

Document

document or dom object with article content

Returns

any

source

Extract Cite

Previous Page

Extract Title

Next Page

On this page

extractSource()ParametersReturns