newspaper4k icon indicating copy to clipboard operation
newspaper4k copied to clipboard

Request: Article to category mapping

Open AndyTheFactory opened this issue 2 years ago • 2 comments

Issue by engrut Thu Sep 28 13:26:42 2017 Originally opened as https://github.com/codelucas/newspaper/issues/449


Is it possible to create a function within the newspaper API to get a category for a specific article based on its URL?

For example of a similar form: article_category = category(article_url)

Let's say the article URL is: http://www.bbc.com/news/science-environment-41355049

and it should return science-environment as a category.

AndyTheFactory avatar Oct 24 '23 10:10 AndyTheFactory

Comment by mcpeixoto Thu Jun 27 11:31:06 2019


I'm also looking for that!

AndyTheFactory avatar Oct 24 '23 10:10 AndyTheFactory

Comment by congthinh Wed May 27 07:57:46 2020


Is it possible to create a function within the newspaper API to get a category for a specific article based on its URL?

For example of a similar form: article_category = category(article_url)

Let's say the article URL is: http://www.bbc.com/news/science-environment-41355049

and it should return science-environment as a category.

Any update on this issue bro?

AndyTheFactory avatar Oct 24 '23 10:10 AndyTheFactory