This is a tool for getting leads from HackerNews threads. Often you want to reach out to people that have participated in a conversation. With this tool you get a csv of an entire thread along with the About info for the commentor. Because HN bios do not have an email field, users usually put their email in the about section.
Written for python 3.11 and pipenv.
$ pipenv install
- Find the thread id. it is the last number in the url
https://news.ycombinator.com/item?id=35759449
- run
$ python get_comments.py 35759449
You'll have a hackernews_comments.csv
file created locally.
$ python test.py
- Inspired by https://github.com/jaredsohn/hacker-news-download-all-comments
- algolia api https://hn.algolia.com/api
- official hn api https://github.com/HackerNews/API#users
- https://github.com/minimaxir/get-all-hacker-news-submissions-comments
- https://github.com/itielshwartz/asyncio-hn
If you have a good company, I would love to help you. You can email me at my username at gmail.