Giter VIP home page Giter VIP logo

political-news-analysis's Introduction

Political-News-Analysis

In this project, we analysis the political news between 2018-07-01 and 2018-12-31 from various media.

The code is written in Python3 with jupyter notebook.

Installation

Download the repository

$ git clone https://github.com/MiccWan/Political-News-Analysis.git

Since plotly is used in our project, you need to set your credentials to use the package:

$ python

then in python interactive shell,

>> import plotly 
>> plotly.tools.set_credentials_file(username='<YOUR_ACCOUNT>', api_key='<YOUR_API_KEY>')

Packages

  • In crawler, we use requests and BeaufifulSoup4.
  • In text mining, we use pandas, jieba, sklearn and mlxtend.
  • In visualiztion, we use networkx and plotly.

Dataset

The dataset obtained by crawler is available at this Google Drive Folder.

Folders

  • /crawler: Crawlers for new_talk and liberty_times.
  • /data: Storing the list of events, people and reputation data for future analysis.
  • /final_demo: Report and data for final demo.
  • /jieba_data: Some dictionary for term frequency analysis.
  • /politicians: Images and wordcloud of politicians.
  • /tools: Some tools, modules and test file created in analysing.

political-news-analysis's People

Contributors

miccwan avatar a136489 avatar marvinchung 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.