Thriam's Fake news detector
by Thriam1111 Updated: Aug 6, 2022
Solution Kit
This AI program obtains data from user and immediately replies the user about the validity of the news using web scraping.
Thriam's Fake news detector (Kit Solution Source)
import requests from bs4 import BeautifulSoup search=input("Input the news to be searched: ") url="https://www.google.com/search?q="+search res=requests.get(url) html_page=res.content soup=BeautifulSoup(html_page, 'html.parser') text=soup.find_all(text=True) output='' removed=['[document]'] for t in text: if t.parent.name not in removed: output+='{} '.format(t) list1=output.split() output=",".join(list1) list2=search.split() search=",".join(list2) count=output.count(search) if count>=2: print("\nThe news is true\n") else: print("\nThe news is false\n") Also this can be found in my github https://github.com/Thriam/Fake-news-detector.git
Group Name 1
Just an example from my mentor(24 Hr AI Challenge conductors).
Kit Solution Source
fakenews-detectionby kandikits
Fake News detection in news articles
fakenews-detectionby kandikits
Jupyter Notebook
0
Version:v1.0.0
License: Permissive (Apache-2.0)
Group Name 2
Some of these were helpful for project
notebookby jupyter
Jupyter Interactive Notebook
notebookby jupyter
Jupyter Notebook
10143
Version:v7.0.0b3
License: Permissive (BSD-3-Clause)
numpyby numpy
The fundamental package for scientific computing with Python.
numpyby numpy
Python
23663
Version:v1.25.0rc1
License: Permissive (BSD-3-Clause)
pandasby pandas-dev
Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
pandasby pandas-dev
Python
38552
Version:v2.0.2
License: Permissive (BSD-3-Clause)