• Post category:StudyBullet-8
  • Reading time:5 mins read


Aggregate and Consume News Using an API with Python | Django | Bootstrap

What you will learn

Aggregate news using an API

Consume aggregated data with python and Django

Integrate Bootstrap to present the aggregated data

Install Python and Django

Create and activate virtual environments

Description

A News Aggregator  is a web application which aggregates data (news articles) from multiple websites. Then presents the data in one location.

The Internet is full of news outlets that you can use to stay abreast of the latest happenings in the world. With the current increase in Internet usage, most people are abandoning traditional media — such as newspapers and televisions — and heading online to quench their thirst for the latest news. Some of the news media found online have exposed their Application Programming Interfaces (APIs) to allow developers to fetch their stories and integrate them into their applications.


Get Instant Notification of New Courses on our Telegram channel.


There are  a variety of API’s available for aggregating and consuming news content. The News API allows you to search more than 30,000 news outlets from around the world. For example, you can use the API to know the trending stories in the New York Times, new articles published about a product, or a company reviewed by a blog recently.

In this course we will use the media stack API which is available on a free  and paid plan Free. It is a Simple REST API for aggregating Live News & Blog Articles.  It is a Scalable JSON API delivering  that  aggregates worldwide news, headlines and blog articles in real-time.

English
language

Content

Introduction

Introduction
What is an API
What is http
What is Python
What is Django

Python Setup

Installing Python on Windows
Installing Python on Macs
Installing Python on Linux
Creating a virtual environment on Windows
Creating a virtual environment on Macs
Creating a virtual environment on Linux
Activating a virtual environment on Windows
Activating a virtual environment on Macs
Activating a virtual environment on Linux
Upgrading pip on Windows
Upgrading pip on Macs
Upgrading pip on Linux

Aggregating and Consuming News Feed Data Using an API with Python |and Django

Installing Django on Windows
Installing Django on Macs
Installing Django on Linux
Creating a Django project
Creating a Django project on Mac
Creating a Django project on Linux
Creating a Django app
Starting Django development server
Creating URLS Route
Installing Requests Module
Generating an API Key
Creating a view function
Creating an HTML Template
Testing the application
Download Project Code