Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1 KB

readme.md

File metadata and controls

49 lines (37 loc) · 1 KB

Extracto

GitHub CI

Extracts metadata from articles and other documents.

Built for Deno Deploy and other serverless environments.

Article Metadata

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
}

Local Run

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"

Tests

deno test --allow-net