Skip to content

andrew-malikov/extracto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://localhost:8000?url=wow"

Tests

deno test --allow-net

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published