Provide a dataframe containing the data about the top N attractions for a certain city requested by the user, combining hot spot search from Tripadvisor and obtaining relevant data from Twitter (e.g. sentiments about a certain place).
A character vector of maximum length 1 (city requested)
A positive integer number (number of top spots to get for the requested city)
The function automatically obtains the most relevant places
for the selected city based on a search on Tripdadvisor, then queries
Twitter about each hot spot (e.g. monument).
Afterwards it runs a sentiment analysis on those selected N top attractions, and also measures the popularity of the place (using the count of the number of tweets mentioning the #place).
The function returns as a result a dataframe containing all the relevant information about the top spots in that city combining in that sense also live reviews from Twitter users, which can then be plotted interactively on a Shiny map as well
A dataframe containing all results fetched from Tripadvisor and Twitter regarding the top attractions in the chosen city (e.g. popularity level).
Ayrton Rua: [email protected]
Maurizio Griffo: [email protected]
Ali Karray: [email protected]
Mohit Mehrotra: [email protected]
Youness Zarhloul: [email protected]
Orso, S., Molinari, R., Lee, J., Guerrier, S., & Beckman, M. (2018). An Introduction to Statistical Programming Methods with R. Retrieved from https://smac-group.github.io/ds/
1 2 3 4 5 6
## Not run: getTopNAttractions( city = "london", n = 10 ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.