Skip to content

Simple HTTP API endpoint that takes URL to any article and returns JSON object containing information about the article.

Notifications You must be signed in to change notification settings

pavlovtech/article-parser

Repository files navigation

article-parser

Simple HTTP API endpoint that takes URL to any article and returns JSON object containing information about the article.

  • Written in Python
  • Based on Newspaper3k library
  • Uses Flusk for HTTP API
  • Dockerized

To start run the following command inside the project directory:

flask run

Request

POST /api/v1/parse { "url": "https://yoursite.com/article1" }

Response

{
 "title": ""
 "text": ""
 "topImage": ""
 "images": ""
 "authors": ""
 "publishDate": ""
 "movies": ""
 "summary": ""
 "metaLang": ""
 "metaDescription": ""
 "metaKeywords": ""
}

About

Simple HTTP API endpoint that takes URL to any article and returns JSON object containing information about the article.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published