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..."
Links
- natural, spelling-corrector, axios, stopword - third party packages used
- Social Scraper - Another one of my own project used as a web scraper.
- Link to my GitHub Repository