Request: Article to category mapping
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.
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?