Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.42 KB

readme.md

File metadata and controls

40 lines (27 loc) · 1.42 KB

Hacker News Comment Bios

pylint flake8

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.

screenshot

Running

Written for python 3.11 and pipenv.

  1. $ pipenv install
  2. Find the thread id. it is the last number in the url https://news.ycombinator.com/item?id=35759449
  3. run $ python get_comments.py 35759449

You'll have a hackernews_comments.csv file created locally.

Tests

  • $ python test.py

Other resources

  1. Inspired by https://github.com/jaredsohn/hacker-news-download-all-comments
  2. algolia api https://hn.algolia.com/api
  3. official hn api https://github.com/HackerNews/API#users
  4. https://github.com/minimaxir/get-all-hacker-news-submissions-comments
  5. https://github.com/itielshwartz/asyncio-hn

Hire Me

If you have a good company, I would love to help you. You can email me at my username at gmail.