Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

RPM1984/RedditSentimentAnalyzer

Repository files navigation

RedditSentimentAnalyzer

Build Status Codecov NuGet Pre Release NuGet

What is this?

A dead-simple library to help analyze the sentiment of a particular term on Reddit.

Installation

How to use

  1. Signup for a Azure Cognitive Services account. You can get 5,000 free transactions/month for free. Note down your API key and region for your account.
  2. Create a new instance of SentimentAnalyzer:
var analyzer = new SentimentAnalyzer(logger, 
                                     "your-cognitive-services-key", // replace with your key
                                     AzureRegions.WestUs); // replace with assigned region
  1. Call GetSentimentAsync, passing through a subreddit and search term. For example:
var results = await analyzer.GetSentimentAsync("cryptocurrency", "bitcoin");

About

Reddit sentiment analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages