/news-api

News Api App That uses News api data(https://newsapi.org/) to get news sources, news articles and top headlines from various forms mayit be countries or places or things

Primary LanguagePython

News_Api App

This application lists various sources of news and subsequent highlights in each of the source. clicking an individual highlights takes the user to the article itself for the full story

Author

By Manasseh Bundi


Description

A simple Flask Application that lists various News sources retrieved from News API. A user can click on a News source and be directed to a page that contains News Articles from the selected News source. The article's title, image, date of publication and preview will be displayed and a user can click on the article to be directed to the source's site to read the entire article. The Homepage also comprises of the headlines section where top headlines are displayed

Technologies Used

  • Python3.6
  • Flask framework
  • Bootstrap

Dependancy Installments

  • pip install python3.6
  • pip install flask
  • pip install flask-bootstrap
  • pip install flask-script
  • pip install flask-wtf

Technical Requirements

  • Contains two classes:- News Source and News Articles
  • Contains docstrings to document methods and functions
  • Contains test classes for all the classes testing each individual method in a class

User Stories

As a user I would like:

  • to see various news sources and select the ones I prefer
  • to see all the news articles from that news source
  • to see the image, description and time the news article was created.
  • to click on an article and read it fully from the news source.

How to use it

Specifications

Behavior Input Outcome
Display News sources N/A List of various News sources is displayed
Articles from selected News source Click a News source Directed to a page with a list of articles from the selected source
Display image, description, title and date of publish N/A An articles image, title, description and date of publication are displayed
Read an entire article Click on an article Directed to the source's site to read the entire article

Known Bugs

No Bugs gotten Yet.INcase you discover one kindly email me at manassehbundi2017@gmail.com

Support and Contact Details

You can reach out to me at manassehbundi2017@gmail.com for Reviews, Advice, Collaborations and Comments

Licence

MIT License

Copyright (c) 2020 MANASSEH BUNDI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.