{"id":8279,"date":"2021-05-24T14:33:20","date_gmt":"2021-05-24T14:33:20","guid":{"rendered":"https:\/\/wealthrevelation.com\/data-science\/2021\/05\/24\/hotels-on-miami-beach-tripadvisor-web-scraping\/"},"modified":"2021-05-24T14:33:20","modified_gmt":"2021-05-24T14:33:20","slug":"hotels-on-miami-beach-tripadvisor-web-scraping","status":"publish","type":"post","link":"https:\/\/wealthrevelation.com\/data-science\/2021\/05\/24\/hotels-on-miami-beach-tripadvisor-web-scraping\/","title":{"rendered":"Hotels on Miami Beach &#8211; Tripadvisor Web Scraping"},"content":{"rendered":"<div>\n<h2>Introduction<\/h2>\n<p>Miami Beach, located in Florida, US is a world-famous tourist spot in the blue backdrop of the Atlantic Ocean. South Beach is a part of Miami Beach which attracts millions of tourists for its exquisite view of Ocean view, white sand beach and all other entertainments ideal for a great vacation time.\u00a0<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"480\" height=\"435\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/picture2-288821-piOkeCJA.jpg\" alt=\"\" class=\"wp-image-73927\"><\/figure>\n<p>Primary objective of this project is to web scrape all popular Miami beach hotels from Tripadvisor webpage and create a comparative presentation based on Hotel group categorization, starting price, amenities, location attraction, rating and popular review comments. Tripadvisor doesn\u2019t provide the list of hotels based on different categories like Hotel Chain\/Boutique Hotel \/Other Local Hotels. This analysis helps to quickly compare the price variation based on hotel category. Sentiment Analysis on popular review comments helps to identify the overall satisfaction level and needs of consumers.<\/p>\n<p>Before going in technical detail,\u00a0 let&#8217;s define what are the hotel categories to be identified through this project. Hotel categories have been categorized in three main segments based on socio-economic choices of tourists.<\/p>\n<ul>\n<li>Chain Hotel : Part of a chain or group of hotels operated by the same owner and having same standard in all locations. Hilton, Marriot, IHG, Hyatt are some of the main chains.<\/li>\n<li>Boutique Hotel : Medium size hotels with one-on-one five-star hospitality service and luxury ambiance to get the private and custom feeling. Lennox, The Betsy, Urbanica \u2013 are some hotels of this category in Miami Beach<\/li>\n<li>Local Hotel: Hotels operated by local owners to meet the demand of local attractions with standard\/luxury service and ambiances. Ocean Reef, Venezia ,The Meridian are local in Miami Beach<\/li>\n<\/ul>\n<h2>Target Audience<\/h2>\n<p>The primary audience for this project is the tourists getting advantages as:<\/p>\n<ul>\n<li>Can get an idea for counts of Chain Hotel\/Boutique Hotel\/Local Hotel in the area and choose the hotel based on their choice<\/li>\n<li>Can compare hotel price per day along with other criteria for these 3 categories of hotels.<\/li>\n<li>Can compare pricing of Beach-front Hotels in main Miami beach and South Beach hotels.<\/li>\n<li>Can decide based on the hotel amenities whether to stay in a luxury\/standard\/budget hotel.<\/li>\n<\/ul>\n<h2>Dataset Generation<\/h2>\n<p>Scrapy has been used to web scrape the TripAdvisor Page for Miami beach hotels and total 336 hotel records have been scraped. Hotel Name, Start Price, Hotel rating, Hotel reviews, Location attraction, Amenities, Popular review comments and nearby restaurant count data have been collected for 336 hotels and stored in different columns of an Excel.<\/p>\n<p>note: Start Price of Hotel comes is the current day room rate in Trip Advisor. The presentation data has been retrieved on Dec 2020 from Trip Advisor<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"759\" height=\"405\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/picture5-840560-1mHEtcMH.jpg\" alt=\"\" class=\"wp-image-73929\"><\/figure>\n<h2>Pre-Processing &amp; Data Engineering<\/h2>\n<p>Missing Data Handling &#8211; It\u2019s observed that start price of some of the hotels are blank in trip advisor page. The blank rows have been discarded in pre-processing as no imputed value will help in analysis.<\/p>\n<p>Hotel Group Categorization \u2013 Hilton, Marriot, Lexington, IHG, Hyatt, Westgate and other standard groups are the main chains used to identify the Chain hotels. \u201cBoutique Hotel\u201d word have been retrieved from popular review comments to identify the boutique hotels. Rest have been marked as Local Hotels.<\/p>\n<p>Hotel Location Categorization &#8211;\u00a0 Popular Review Comment data have been used to identify the word \u201cSouth Beach\u201d for the categorization of South Beach Hotels. Hotel Amenities data have been used to identify the word \u201cBeach Front\u201d to categorize the Beach Front hotels.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"332\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic6.jpg-647877-lR72wDuu-1024x332.jpg\" alt=\"\" class=\"wp-image-73931\"><\/figure>\n<h2>Exploratory Data Analysis<\/h2>\n<p>Primary analysis reveals that the Local hotel counts are much higher than Boutique or Chain hotels. Price density also has sharp curve based on different price ranges.<\/p>\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/picture4-416276-IxQ2TyWN.jpg\" alt=\"\" class=\"wp-image-73933\" width=\"492\" height=\"306\"><\/figure>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"595\" height=\"367\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic7.jpg-806698-chDk2DHf.jpg\" alt=\"\" class=\"wp-image-73934\"><\/figure>\n<p>The hotel price statistical analysis explores that Chain and Boutique hotels maintain an average price range whereas local hotel prices vary significantly. The standard deviation on price is 144 for local hotels whereas for Chain and Boutique it&#8217;s 88 and 63.\u00a0<\/p>\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic8.jpg-856346-NKeRqTX2-1024x340.jpg\" alt=\"\" class=\"wp-image-73936\" width=\"943\" height=\"312\"><\/figure>\n<p>The result of analysis on how hotel prices vary with hotel rating reveals that for all 3 types of\u00a0 hotel categories, expensive hotels are mostly having high rating.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"346\" height=\"269\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic9-665595-ciIa3zau.png\" alt=\"\" class=\"wp-image-73941\"><\/figure>\n<p>No direct relation found between hotel prices based on location attraction or walkable rating from the beach.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"337\" height=\"269\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic10-477001-C7fdZrHq.png\" alt=\"\" class=\"wp-image-73942\"><\/figure>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"337\" height=\"269\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic11-353588-RALaUpoS.png\" alt=\"\" class=\"wp-image-73943\"><\/figure>\n<h3>Word Cloud<\/h3>\n<p>Based on word cloud analysis on the data retrieved from popular review comments, it\u2019s observed that \u2018South Beach\u2019 signifies an important role in Miami. So, the next step for data analysis tends to hotel distribution and price comparison in South Beach compared to main Miami Beach.<\/p>\n<p>\u00a0<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"512\" height=\"356\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic12-414669-fqXlaroy.png\" alt=\"\" class=\"wp-image-73945\"><\/figure>\n<h3>Sentiment Analysis on Popular Review Comments<\/h3>\n<p>From the sentiment analysis, it\u2019s observed that for chain and boutique hotels polarity is mostly positive. After analysis of the reason, it\u2019s found that mainly the positive feedbacks have been captured in popular review comments of Trip Advisor page. As in this web scraping project scope, the data source is \u2018Popular Review Comments\u2019, the sentiment analysis is coming little biased on positive side.<\/p>\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic13.jpg-897917-ks4w1GtT-1024x255.jpg\" alt=\"\" class=\"wp-image-73947\" width=\"926\" height=\"230\"><\/figure>\n<h3>Comparison with South Beach<\/h3>\n<p>Interesting observation found when compared the hotel price of Miami beach with the south beach. South beach hotels are more expensive than other places probably because of the attractive white sand beach. Additionally beach front hotels are expensive than the other hotels.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"469\" height=\"297\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic15-838191-kkOjDQfh.jpg\" alt=\"\" class=\"wp-image-73949\"><\/figure>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"461\" height=\"297\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic16-900151-dd6HuiqP.jpg\" alt=\"\" class=\"wp-image-73950\"><\/figure>\n<ul>\n<li>Local hotel counts are nearly 60% more than the Chain hotel and boutique hotels in Miami beach area.<\/li>\n<li>Competition is high as 90% of Chain and Boutique Hotel ratings are having high rating compare to low ratings of 30% local hotels.<\/li>\n<li>Hotel location, Hotel Rating and whether it\u2019s beach front or not \u2013 are 3 major factors to vary the hotel prices.<\/li>\n<li>Chain hotels are fewer and expensive in south beach<\/li>\n<li>Beach front hotels are few in South Beach\u00a0<\/li>\n<\/ul>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"682\" height=\"838\" src=\"https:\/\/nycdsa-blog-files.s3.us-east-2.amazonaws.com\/2021\/05\/chaitali-majumder\/pic17.jpg-684119-iaJgLSGr.jpg\" alt=\"\" class=\"wp-image-73952\"><\/figure>\n<h2>Recommendations<\/h2>\n<p>Based on above mentioned data analysis on the Miami hotels, some recommendations can be provided for the tourists to meet the best expectations like:<\/p>\n<ul>\n<li>The tourists having priority on quality of hotel services \u2013 are recommended to choose either Chain or Boutique hotels. Luxury local hotels also will be an option for them.<\/li>\n<li>The tourists having priority on budget \u2013 are recommended to choose local or Chain budget hotels in main Miami Beach.<\/li>\n<li>South Beach hotels are expensive compare to main Miami beach hotels. Tourists having priority for luxury on holiday \u2013 are recommended to choose the Luxury Local\/Boutique hotels on South Beach. Ocean Front hotels will be ideal for them.<\/li>\n<li>The tourists having priority on outside fun more than hotels \u2013 are recommended to choose standard or budget hotels of local\/chain category.<\/li>\n<\/ul>\n<p>For Python code, please click\u00a0<a title=\"here\" href=\"https:\/\/gist.github.com\/Chaitali20-gh\/85ae58ea53ca9aba8ad703d2e5bceccc\">here<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/nycdatascience.com\/blog\/student-works\/web-scraping\/hotels-on-miami-beach-tripadvisor-web-scraping\/<\/p>\n","protected":false},"author":0,"featured_media":8280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/posts\/8279"}],"collection":[{"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/comments?post=8279"}],"version-history":[{"count":0,"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/posts\/8279\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/media\/8280"}],"wp:attachment":[{"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/media?parent=8279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/categories?post=8279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wealthrevelation.com\/data-science\/wp-json\/wp\/v2\/tags?post=8279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}