mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 20:56:07 +08:00
Update metadata.ts
This commit is contained in:
parent
8974230db4
commit
2ac50a16f5
@ -74,6 +74,7 @@ export function extractMetadata(soup: CheerioAPI, url: string): Metadata {
|
||||
const customMetadata: Record<string, string | string[]> = {};
|
||||
|
||||
try {
|
||||
// TODO: remove this as it is redundant with the below implementation
|
||||
title = soup("title").text() || null;
|
||||
description = soup('meta[name="description"]').attr("content") || null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user