Showing posts from March, 2020

Creating a Basic Python Web App with Flask

Simple web applications in Python are easily constructed with the Flask micro-framework.Why would you want a web app and not just a web page?

You can make quite sophisticated web pages with just HTML and Javascript but if you want to incorporate data that needs to be stored somewhere, or needs some sort of sophisticated processing, you might be better off building a proper application.

Traditionally, web applications were written in PHP, JSP or ASP. But these days Python is an perfectly good choice for creating web apps.
In this article we are going to make a simple example of a Python web app using Python and Flask. Here's what we'll do:

1. Get the Flask library for Python and learn how to use it.
2. Writea Flask-based program to provide some simple data. 3. Write a web page template to display that data.
You don't need a high level of skill to follow this tutorial but you do need to have a basic knowledge of Python and HTML, and know what a web page and a server is. I als…

Visualizing Simple Twitter Statistics with Python and Pandas

Twitter statistics are great to see how well you are engaging with your audience but you can use Python to see how are others doing?

If you use Twitter cards or adverts, you can get a very good idea how people are engaging with your tweets from the official Twitter statistics. But what about your friends, your colleagues… your competitors? Just a little bit of Python code (that you can download) might do the trick.

Need An introduction to Python? Just Enough Python
Imagine that you are a global news giant and are wondering just how well you are regarded by your audience compared with, say, CNN, or the BBC. One thing you might do is compare the level of engagement of their tweets and compare them to your own.

While you may not be able to see the same engagement statistics as for your own account, there are some simple stats that you can see. It just takes a little programming and a Twitter Developer account.

I’m going to show you how it is really quite straightforward to monitor the nu…