Topic analysis of twitter data


This project aims to better understand what other countries talk about when they mention Wales on Twitter.

Twitter has been used as the data source for this project where tweets are analysed for key topics or themes. The topics are then assessed on their sentiment which will give a basic indication of which topics are generally positive and which are negative.

Data is obtained through the Twitter API using the tweepy package. Tweets can be obtained by country by specifiying a country code as a tag in the search criteria.

Currently, with a free twitter developer account, there are rate limits imposed on the number of possible searches and on the number of tweets that can be returned. Also, the free API only allows the return of tweets from the past 7 days.