This repository was created for the 2021 Hoohacks hackathon. We developed a browser extension that detects fake news based on the titles of the tabs. Note that detecting if a news is fake or real based on the title is even hard for humans. In further work, we are planning to get the entire text of the news and update our machine learning classifier to make the predictions. For training the classifier we used the "Fake and real news dataset" from kaggle.
Make sure you have the following python packages installed
- Flask - 1.1.2
- Scikit-learn - 0.24.1
- Pandas - 1.1.3
- Numpy - 1.19.2
- Joblib - 1.0.1
Load extension into google chrome with the following steps:
- Open the extension manager
- Activate the "Developer mode" in the top right corner
- Click on "Load unpacked" and select the "extension" folder in the repository.
- Start server by executing the following command in your terminal:
python server.py
- Open your chrome browser and open a news you want to read
- Click on the extension icon to see if the news is real or fake.