HackerNews Sentiment Analysis
Use VaderSentiment to analyze the sentiment of a post on HackerNews.
Documentation: https://namuan.github.io/hn-sentiment
Source Code: https://github.com/namuan/hn-sentiment
PyPI: https://pypi.org/project/hn-sentiment/
Installation
pip install hn-sentiment
Usage
To run it against a single HackerNews post, copy the post id from the URL and run the following command:
hn-sentiment -s 34846476 -o target/34846476-sentiment.md
Acknowledgements
Development
- Clone this repository
- Requirements:
- Python 3.7+
-
Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
Validating build
make build
Release process
A release is automatically published when a new version is bumped using make bump
.
See .github/workflows/build.yml
for more details.
Once the release is published, .github/workflows/publish.yml
will automatically publish it to PyPI.