- What Were Twitter Hashtags for Keto, Paleo, Weight Watchers and Whole30 Diets Trending in the US Within the Last 30 Days?
- Start Date: February 14, 2019
- Twitter API
- Libraries: Pandas, NumPy, Matplotlib, Requests, JSON, Pprint, Tweepy, Geocoder, Gmaps
- Google Maps to create the Heatmaps
- Maxed out API requests for API key
- Locations were inaccurate (ex: State, Country instead of City, State, and obscure locations, ex: "from the sports grille")
- Trying to grab the latitude and longitude coordinates by using the Google Maps API, but then found the Geocoder Library more useful
- Number of locations and weights had to match to build heatmap
- Only allowed to pull 100 results, and only 70-75 results per diet had location values
Using Twitter to gather data on tweets based on location in regards to the 4 types of diets fads that were trending, we found:
- Keto was trending highest in CA. When plotting by cities in CA, we noticed that SF and LA had a cluster of hits. These metros are more tech-savvy as compared to other cities in CA, which likely lead to more Twitter activity.
- Paleo was heavily trending in CA, NY, and WA. In this case, WA seems like an outlier against the large populations of CA and NY.
- Weight Watchers was heavily trending in TX and CA. This could be because these two states are highly populated compared to the other 48 states.
- Whole30 was trending higher in CA, WA and MO. It seems like MO is an outlier given its small population.