Skip to content

Smarp/newspaper-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newspaper-api

Deprecated. Migrated to private repository

Port: 38765

Usage

  • /topimage and / returns the top image of the link/article in question

args:

-- url: encoded url

returns { "topimage": "string", "title": "string", "text": "string", "publish_date": "publishdate", "movies": "[]string", "images:": "[]string", "html": "string", "authors": "[]string" }

Local build & launch

Deployment

Environment Variables

When fetching urls through newspaper api, CUSTOM_USER_AGENT value is used as user agent header for domains in the CUSTOM_DOMAINS set.

  • CUSTOM_DOMAINS: List of domain names seperated by space e.g. 'domain1.test domain2.test domain3.test'

  • CUSTOM_USER_AGENT: String, e.g. 'Mozilla/5.0'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 9