News website using Flask and news API : Part 1
Hello guys,
First of all, I hope you all are safe and making things great. Every day we woke up and get bad news from the cyclone to the corona outbreak.
Most of us get news updates from memes not from news channels.
Crises still continue and we don't have any idea when it will over. But it will over and we get through this too.
Today we will build news websites using news API and flask so just quick look what is flask and API
Flask
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions
This is more like an official definition or description.
But in simple words, we can describe flask as a lightweight python framework that is used to build websites and REST API. Mostly it is used to deploy machine learning models on the server.
API
An application program interface (API) is a set of routines, protocols, and tools for building software applications. Basically, an API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components.
What are we going to build?
Simple News website.
https://newsflaskapp.herokuapp.com/
We just get data from newsapi and render it on our website using flask. We will also deploy this website on Heroku which is a hosting platform. Hosting means we can view our website from anywhere in the world. Heroku is free platform not completely free but for demo purpose or testing purpose we can use it for free. we will discuss more Heroku in upcoming blogs.
Next Setup Environment
First of all, I hope you all are safe and making things great. Every day we woke up and get bad news from the cyclone to the corona outbreak.
Most of us get news updates from memes not from news channels.
Crises still continue and we don't have any idea when it will over. But it will over and we get through this too.
Today we will build news websites using news API and flask so just quick look what is flask and API
Flask
Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions
This is more like an official definition or description.
But in simple words, we can describe flask as a lightweight python framework that is used to build websites and REST API. Mostly it is used to deploy machine learning models on the server.
API
An application program interface (API) is a set of routines, protocols, and tools for building software applications. Basically, an API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components.
What are we going to build?
Simple News website.
https://newsflaskapp.herokuapp.com/
We just get data from newsapi and render it on our website using flask. We will also deploy this website on Heroku which is a hosting platform. Hosting means we can view our website from anywhere in the world. Heroku is free platform not completely free but for demo purpose or testing purpose we can use it for free. we will discuss more Heroku in upcoming blogs.
Next Setup Environment
❤❤Quarantine python group link ❤❤
8805271377 WhatsApp
Follow here ❤
@mr._mephisto_ Instagram
There will be no restrictions just feel free to learn.
Share and take one more step to share knowledge with others.
Believe in yourself 🤟 you are awesome.
Be safe, Be happy😁
Take care of yourself and your family
Of course, watch movies and series🤟😉
And follow the guidelines of the government
Comments
Post a Comment