Skip to content

This repo allows you to extract comments from subreddit submissions based on a search query and perform sentimental analysis on each comment.

Notifications You must be signed in to change notification settings

SeyiAgboola/Reddit_Comments_Sentiment

Repository files navigation

Extract Reddit Comments and Perform Sentimental Analysis

This repo allows you to collect reddit comments and perform sentimental analysis on them.

There's 3 stages to this document:

  • extract_submissions_via_search.py - Search within specific subreddit for keyword(s) and save metadata to file
  • extract_submission_comments.py - Extract reddit comments for IDs provided via file
  • sentiment_build_allcomms.py - Calculate Sentiment Scores on every comment and save to file

You will need PRAW API key to access Reddit's metadata with this code.

If you wish for full details of how the code works, see my blog below:

About

This repo allows you to extract comments from subreddit submissions based on a search query and perform sentimental analysis on each comment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages