fake-news-detector / api

API for saving news flagging by the users
https://fake-news-detector-api.herokuapp.com/
8 stars 1 forks source link

Add pre-categorized domains #5

Closed rogeriochaves closed 6 years ago

rogeriochaves commented 6 years ago

There are some websites that we can trust, that mostly only publish news in a certain category, for example:

Legitimate: g1.globo.com estadao.com.br

Satire: sensacionalista.com.br

Click Bait: buzzfeed.com

So the idea is to create a list to save this domain and compare the urls, if it is from one of them we can simply return the answer without checking out with Robinho (or maybe we do and show both to the user)

Be aware that some of those use short links like bit.ly when publishing to fb (issue #3) which would complicate this check, and others have their own url shortener bzfd.it, which should be easier to manage, just add to the list.

This list can be hardcoded for now and commited to git, it doesn't even need to be on the database (good thing is it will have versioning and ppl can contribute), but later maybe we can add an admin area to manage this.

rogeriochaves commented 6 years ago

closed by #11 follow up on #10