Menu

What are people actually saying under that post? Facebook & Instagram comment sentiment with Python
πŸ“°

What are people actually saying under that post? Facebook & Instagram comment sentiment with Python

DEV Community: datascienceΒ·Monkey.D.ScrapingΒ·13 days ago
#4MCGXACz
#devtodatascience#science#devto#dev#comments
Long article (617 words) β€” no AI summary yet.
Reading 0:00
15s threshold

You launched something. The post has 400 comments. Your boss asks "so, how did it go?" and the honest answer is "the vibes are mixed".

We can do better than vibes.

Disclosure up front: I built the comment scrapers and the repo used below. They're pay-per-result tools on Apify, and a test run costs a couple of cents.

The plan

Pull every public comment from a Facebook or Instagram post (no login).

Give each comment a sentiment and a short topic.

Get a CSV plus a one-screen summary per post.

All the code is in social-comments-sentiment .

Step 1: get the comments

The comments come from two Apify Actors, one per platform: Instagram Comments Scraper and Facebook Comments Scraper . From Python it's one call ( pip install apify-client ):

import os from apify_client import ApifyClient

apify = ApifyClient ( os . environ [ " APIFY_TOKEN " ]) run = apify . actor ( " monkey.d.scraping/instagram-comments-scraper " ).…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.