
Data Utilization: Crafting F&B Insights from Social Media Data
Category
Web Application
Case Study From
Personal
01
The Story
In this information age, we rely on the internet for various digital activities, with social media being primary. It’s almost like a second life, as we spend approximately 50-60% of our time on social media. This cycle has significantly impacted the diversity of data in social media, making it seem like a data mine that we can leverage. The F&B (Food and Beverage) sector is crucial in Indonesia. To better understand the culinary landscape, I leverage social media data to generate insights and identify emerging trends in F&B.


02
The Challenge
How might we generate culinary trends as insights from F&B data on social media?
03
Implementation
The Concept
The concept of F&B (Food and Beverage) insight involves a multi-step process aimed at harnessing valuable information from social media sources. This process begins with the systematic collection of F&B-related data from various social media platforms. Subsequently, this collected data is subjected to data mining techniques, which involve in-depth analysis and extraction of meaningful patterns, trends, and relevant information.

Create a Data Miner Tool
To develop a mining tool, I utilize Puppeteer for web scraping social media data and Fastify as the backend to run the tool. The tool can efficiently gather relevant information from various social media platforms by leveraging these technologies. To automate the data mining process, I implemented a cron job within the CI/CD environment, which regularly schedules and runs the tool.
Provide Insights from Raw Data
The raw data stored in the database using the miner tool can be managed to generate insights that are like culinary trends. This can be done by creating and running queries on the data to uncover patterns and relationships that provide valuable insights.
It’s an example SQL query that I used to generate insights into culinary trends:
SELECT
date_trunc('week', social_media_insights.created_at) AS weekly,
social_media_insights.name,
keyword,
indigenous,
avg(view) as viewCount,
avg(social_media_insights.like) as likeCount,
avg(share) as shareCount, avg(comment) as commentCount
FROM social_media_insights
INNER JOIN social_media_topics
ON social_media_insights.topic_id = social_media_topics.id
where social_media_insights.keyword=hashtag
GROUP BY weekly, keyword, indigenous, social_media_insights.name
ORDER BY weekly desc
limit 4;Visualize Data
I have transformed complex data into an easy-to-understand presentation that highlights various culinary trends. By collecting F&B data from social media, I have created informative charts for each food and beverage menu. To explore the demo and learn more, please visit bukadapur.com.
Lesson Learn
- Collecting data from social media can be a complex task given the unique patterns and structures of each platform. To facilitate the process, it is advisable to narrow down our focus to specific types of data, such as hashtag trends. This approach can help streamline the data collection process and ensure that we get the most relevant and useful insights.
- It's important to keep our database lean and efficient. Instead of storing all the data every day, we can extract a representative sample from social media that matches our desired data type. This way, we can save valuable storage space while still getting the information we need.