technology logo
technology logo

Thriam's Fake news detector

share link

by Thriam1111 dot icon Updated: Aug 6, 2022

Solution Kit 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

Jupyter Notebook doticonstar image 0 doticonVersion:v1.0.0doticon
License: Permissive (Apache-2.0)

Fake News detection in news articles

Support
    Quality
      Security
        License
          Reuse

            fakenews-detectionby kandikits

            Jupyter Notebook doticon star image 0 doticonVersion:v1.0.0doticon License: Permissive (Apache-2.0)

            Fake News detection in news articles
            Support
              Quality
                Security
                  License
                    Reuse

                      Group Name 2

                      Some of these were helpful for project

                      notebookby jupyter

                      Jupyter Notebook doticonstar image 10143 doticonVersion:v7.0.0b3doticon
                      License: Permissive (BSD-3-Clause)

                      Jupyter Interactive Notebook

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                notebookby jupyter

                                Jupyter Notebook doticon star image 10143 doticonVersion:v7.0.0b3doticon License: Permissive (BSD-3-Clause)

                                Jupyter Interactive Notebook
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          numpyby numpy

                                          Python doticonstar image 23663 doticonVersion:v1.25.0rc1doticon
                                          License: Permissive (BSD-3-Clause)

                                          The fundamental package for scientific computing with Python.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    numpyby numpy

                                                    Python doticon star image 23663 doticonVersion:v1.25.0rc1doticon License: Permissive (BSD-3-Clause)

                                                    The fundamental package for scientific computing with Python.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              pandasby pandas-dev

                                                              Python doticonstar image 38552 doticonVersion:v2.0.2doticon
                                                              License: Permissive (BSD-3-Clause)

                                                              Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        pandasby pandas-dev

                                                                        Python doticon star image 38552 doticonVersion:v2.0.2doticon License: Permissive (BSD-3-Clause)

                                                                        Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  nltkby nltk

                                                                                  Python doticonstar image 11972 doticonVersion:Currentdoticon
                                                                                  License: Permissive (Apache-2.0)

                                                                                  NLTK Source

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            nltkby nltk

                                                                                            Python doticon star image 11972 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                            NLTK Source
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      Deployment Information

                                                                                                      Just download the .py file or the Python Codes and run.

                                                                                                      See similar Kits and Libraries