Dr Pravin Jeyaraj

  • Home
  • About
  • Portfolio
  • Blog
  • CV

Minipedia

Minipedia is a mobile-friendly web application that was originally intended to be a bitesize version of Wikipedia. The user can type in a topic about which they want only a little bit of information (rather than full entry). They can also specify how much information they want, in terms of sentence length, from 1 to 10 and the output language. The required information is extracted from Wikipedia's database using its API and displayed on-screen.

Where there is more than one possible page for a particular keyword, a dropdown box of suggestions is displayed for the user to choose from. If the user chooses a suggestion then realises it was not what they were looking for, they can return to the suggestions page.

After the information from Wikipedia is displayed, a search is then performed on the keyword using Twitter's API and the 200 most recent tweets are extracted. Any tweets that do not contain the specific keyword are excluded. Instead of simply displaying the tweets, a sentiment analysis is peformed. The polarity and subjectivity of each tweet is calculated and each tweet is categorised as either "More or less objective" or "Subjective Commentary", based on pre-coded criteria.

The tweets are then displayed in two columns, with an indication of the polarity and subjectivity of the tweet. The average polarity and subjectivity are also calculated to show the overall current sentiment on Twitter.

Technical specification

The application is written in Python. The web interface is implemented using the Bottle library and HTML. I chose to use Bottle, as opposed to Flask or Django, because this was my first attempt at producing a Python-based web application. The interface with Wikipedia and Twitter was implemented using the wikipedia and tweepy libraries respectively. The textblob library was used for the textual and sentiment analysis of the tweets.

The application was hosted on Pythonanywhere.com. This application was the first time I had to concern myself with server-side programming.

The full code is can be viewed at bottle_app.py and the HTML template for the homepage can be viewed at home.tpl.

Back to Portfolio page


About This Page

This website was coded in HTML, CSS, and Javascript based on a theme from Colorlib. It is hosted on Github. The code can be found here.

Copyright ©2020 All rights reserved | This template is made with by Colorlib

  • Home
  • About
  • Portfolio
  • CV