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, ...

Get Mastering Social Media Mining with Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.