Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.

  • 1.5.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
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 -

  1. Subreddits - http://localhost:8080/api/reddit/subreddit/{query}
  2. All over the reddit - http://localhost:8080/api/reddit/search/{query}
  3. Stackoverflow - http://localhost:8080/api/stackoverflow/{query}
  4. 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..."


  1. natural, spelling-corrector, axios, stopword - third party packages used
  2. Social Scraper - Another one of my own project used as a web scraper.
  3. Link to my GitHub Repository

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc