https://github.com/ilikepizza2/social-sentiment
A nodeJS backend for analyzing the sentiment of people on a social platform.
https://github.com/ilikepizza2/social-sentiment
Last synced: 2 months ago
JSON representation
A nodeJS backend for analyzing the sentiment of people on a social platform.
- Host: GitHub
- URL: https://github.com/ilikepizza2/social-sentiment
- Owner: Ilikepizza2
- Created: 2022-12-18T09:36:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T12:50:25.000Z (over 2 years ago)
- Last Synced: 2025-02-15T05:49:05.888Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/social-sentiment
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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..."----
### Links
1. [natural](https://www.npmjs.com/package/natural), [spelling-corrector](https://www.npmjs.com/package/spelling-corrector), [axios](https://www.npmjs.com/package/axios), [stopword](https://www.npmjs.com/package/stopword) - third party packages used
2. [Social Scraper](https://github.com/Ilikepizza2/social-scraper) - Another one of my own project used as a web scraper.
3. [Link to my GitHub Repository](https://github.com/Ilikepizza2/)