Skip to content

Detects if a news article or social media post is fake or real. It also shows which user posted it and from which platform (like Twitter or Facebook). Great for checking news and spotting fake information.

Sohamcoder1/Fake-News-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“° Fake News Detector with Real-Time News Fetching

Welcome to the Fake News Detector project!
This tool fetches news articles in real-time (with a 12-hour delay on the free GNews API plan) based on a user-defined topic and displays detailed information about each article. It can be easily extended to classify news as real or fake using machine learning models.


πŸš€ Features

  • βœ… Fetches news articles using the GNews API (100 Requests per day allowed)
  • βœ… Fetches social media posts using the Facebook API , Instagram API , Twitter API , Reddit API
  • βœ… Displays detailed information about each article:
    • Published Time
    • Title
    • Description
    • Image URL
    • Content Snippet
    • Source Name, URL & Country
    • Article URL

🀝 Contribution

1. Fork the Repository

2. Clone Your Fork

  • Open GitHub Desktop, Git Bash, or your preferred Git client.
  • Clone your forked repository to your local computer. For Git Bash, run:
git clone https://github.com/<your-username>/Fake-News-Detector.git

3. Create a New Branch

  • Always make changes in a new branch instead of main.
  • Name the branch with your name or feature, for example:
git checkout -b kuheli-branch

4. Make Your Changes

  • Open the file Fake_News_Detection.ipynb in Google Colab.
  • Make your improvements, such as:
    • Adding new features
    • Fixing bugs
    • Improving documentation or examples
    • Enhancing visualizations or outputs
  • After making your changes, save the notebook in Google Colab.
  • Then, save a copy back to this GitHub repository folder directly from Google Colab:
    1. Click on File β†’ Save a copy in GitHub.
    2. Choose your forked repository and the branch you created (e.g., kuheli-branch).
    3. Add a descriptive commit message about your changes.
    4. Click OK to push the changes to your GitHub fork.

5. Commit Your Changes (If using Git locally)

  • Commit your changes with a clear message explaining what you did:
git add .
git commit -m "Added feature X / Fixed issue Y / Updated README"

6. Push Your Branch to GitHub

git push origin kuheli-branch

7. Create a Pull Request in Github website

  • Go to your forked repository on GitHub.
  • Click Compare & pull request.
  • Add a descriptive title and explain your changes in detail.
  • Submit the pull request. Your changes will be reviewed and merged.

About

Detects if a news article or social media post is fake or real. It also shows which user posted it and from which platform (like Twitter or Facebook). Great for checking news and spotting fake information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •