Giter Site home page Giter Site logo

world-news-organizer's Introduction

World-News-Organizer

Detailed description can be seen in 0716021_Documentation.pdf.

Escape your echo chamber! The​ ​World News Organizer

A. Overview

This is an application that shows international news and headlines from reliable news sources such as BBC, CNN, and Al Jazeera. Other than the news itself, it will also show topics related to the news for the users to broaden their understandings about the issue reported.

B. Motivation

People nowadays have gradually been considered indifference towards global issues and world topics. There is a term that has become increasingly popular in recent years called "同溫層", resembling the term "echo chamber" in English, which refers to ​an environment in which a person encounters only beliefs or opinions that coincide with their own. The best way for a person to leave his or her echo chamber is to read news about the world. However, local newspapers and media in Taiwan usually cover only little information about the world and are considered biased. Therefore, I came up with the idea to gather international headlines from trusted and reliable sources and display them all at a time, the user could then get a grasp of world issues at a glance. Other than this, adding related topics can also help users to understand what are related to the news.


Installation

Requirements

  • Python 3.3+
  • Requests, Pandas
  • BeautifulSoup4
  • NewsAPI
  • PyTrends

Installation

Requests
pip3 install requests
Pandas
pip3 install pandas
BeautifulSoup4
pip3 install beautifulsoup4
NewsAPI
pip3 install newsapi-python
PyTrends
pip3 install pytrends

How to run

Step 1:

There are two python files in this project, ​main.py​ and ​functions.py respectively. In order to run the project,

For MacOS:

Under the same path of the files in terminal, type python3 main.py

For Windows:

In CMD, type py main.py to run the file.

Step 2:

After running the file, the program will prompt you to choose 3 news sources from the 8 sources below as shown below: prompt1

Enter your choice and press enter, the program will continue to prompt you.

prompt2

After entering three choices, the program will start to request data: request

Step 3:

After requesting data, the program will generate an HTML file ​pages.html​, ​and automatically open it with the default browser of your system: browser

There will be 3 headlines from each chosen source, 9 articles in total. hover If you hover your mouse on a keyword, the page will show related topics of the respective keyword. If you are interested in one article and want to read more, you can click on the ​Read more... ​and it will lead to the news website.

world-news-organizer's People

Contributors

andyrochi avatar

Watchers

 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.