Socket
Book a DemoInstallSign in
Socket

social-sentiment

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

social-sentiment

A sentiment analysis API which scrapes social media for you and returns the social sentiment of a keyword.

latest
Source
npmnpm
Version
1.5.4
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

social-sentiment

A nodejs backend which uses natural language processing and web scraping to give the current average sentiment of a social media website regarding a product.

Setup

This is a nodejs backend so it can be deployed simply by running node index.js

Usage

After the setup, you can access the scores by the following -

  • Subreddits - http://localhost:8080/api/reddit/subreddit/{query}
  • All over the reddit - http://localhost:8080/api/reddit/search/{query}
  • Stackoverflow - http://localhost:8080/api/stackoverflow/{query}
  • All over the internet - http://localhost:8080/api/duckduckgo/{query}

Results

An analysis of > 0 indicates that the average sentiment on that particular website is currently positive. People think that the product is good. An analysis of 0 indicates that the average sentiment on that particular website is currently neutral. An analysis of < 0 indicates that the average sentiment on that particular website is currently negative. People think that the product is bad.

The absolute value indicates how strong the sentiment is. An analysis of -0.3 vs -1.5 means that people view the second product more negatively than the first. Although both products aren't considered to be good.

Note

Make sure the query is in the form of "word1+word2+word3+word4+..." instead of "word1 word2 word3..."

Keywords

social-sentiment

FAQs

Package last updated on 21 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts