Git Product home page Git Product logo

f-app-news-sentiment's Introduction

Analyzing News Articles With Python

Using Web Scraping, Data Science and Machine Learning techniques to conduct sentiment analysis on news articles using Google's Natural Language Processing API.

Featured Image

Goal

Our goals involved the following:

  • Part 1: Web scraping media stories with the purpose of extracting relevant information for sentiment analysis.
  • Part 2: Extracting the articles using an API and cleaning the text information
  • Part 3: Using Google's Natural Language API for calculating the Sentiment and Magnitude of news articles.

This analysis will allow us to analyze the slant (or bias) of media articles, as well as the degree to which emotion plays into the journalism of many news articles.

#Data

I used data from All Sides to extract stories, relevant articles, information related to the articles, and the bias for each source. We also used the news-please API to extract information related to the articles, such as the text and the author.

Enviroment and Tools

  1. requests
  2. BeautifulSoup
  3. csv
  4. re
  5. pandas
  6. pickle
  7. itertools
  8. difflib
  9. matplotlib
  10. newsplease
  11. google
  12. seaborn
  13. nltk

f-app-news-sentiment's People

Contributors

kidquant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.