Extracts metadata from articles and other documents.
Built for Deno Deploy and other serverless environments.
The model is based on Article Parser and looks like this:
{
url: String,
title: String,
description: String,
image: String,
author: String,
content: String,
published: Date String,
source: String, // original publisher
links: Array, // list of alternative links
ttr: Number, // time to read in second, 0 = unknown
}
AUTH_TOKEN=your_token
deno run --allow-net=:8000 --allow-read --allow-env main.ts
and then perform a request
curl -X GET -H "Authorization: Bearer your_token" "http://localhost:8000?url=wow"
deno test --allow-net