Embedding the search results in a web GUI
In this section, we will expand on the first example in order to visualize the results of our search. As a means to show the items, we'll use a web page automatically generated on the fly so that we can display the profile image next to the display name for each person or page using a familiar interface. This visualization can help us disambiguate between different results that share the same display name.
In order to reach this goal, we will introduce Flask (http://flask.pocoo.org/), a micro framework for web development that allows us to rapidly produce a web interface.
Broadly speaking, Python and web development go hand in hand, and several web-related Python libraries have been around for many years, reaching an interesting level of maturity. Flask is relatively young compared to other frameworks, but it has also reached a level of maturity and has been adopted by a wide community. As web development is not a core concept of this book, we will...