flâneur — a map of the web's best reading

Extracting Hacker News Book Recommendations with the ChatGPT API - reyem.dev blog

blog.reyem.dev · 1,313 words · saved by 1 readers

I love books and I enjoy reading through the Hacker News(HN) book recommendation threads. On HN, there’s almost 200 stories so far this year that have the separate word “book” in the title, and aren’t linked to another page. I wondered what the most commonly recommended or mention books are. Mainly wondering if SICP or PCL would be the top recommendation. After reading of the man who categorised his favourite podcast into dewey decimal using GPT, I was aware that the GPT API could be used to categorise data and output the information in json format. So using the HN data fetched from the hackernews API, I used the subset of stories that seem to be book recommendation threads and extracted book titles, authors and urls from the text using calls to the Chat Completions API. Here’s the top 50 book recommendations: Some things I discovered while doing this project: Here’s an example of the json output by chatgpt, for this comment, it got everything wrong except the link, but it shows the fo

2023-10-12: I have written a followup with some details about the process used to generate this list: Extracting HN Book Recommendations with the ChatGPT API, Vol. II I love books and I enjoy reading through the Hacker News (HN) book recommendation threads. On HN, there's almost 200 stories so far this year that have the separate word "book" in the title, and aren't linked to another page. I wondered what the most commonly recommended or mention books are. Mainly wondering if SICP or PCL would be the top recommendation. After reading of the man who categorised his favourite podcast into dewey

Explore this link on the map →

related reading