getHNFavorites.js

Dev tools

browser script

SHOW HN2020

240points
39comments
#205of 3,028 in 2020
Top 7%of 2020 by points

How HN took it

LovedMost comments that take a side are positive

6 positive, 4 neutral or asking, 0 mixed, 0 critical, out of 10 comments about the project. Thread score +0.45.

Idea: 3 for, 0 againstExecution: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Smart workaround for missing favorites API

    From 2 comments
    • It's a shame favorites aren't exposed in the official HN API: https://github.com/HackerNews/API - this is a smart workaround.
      simonw on HN
    • This is smart. I'm adding this to my HN favorites.
      dvfjsdhgfv on HN
  • Browser-run script needs no install

    From 1 comment
    • It's four years old so the page HTML structure must have likely changed. I'll take a look at it when I'm free and update the script. Thanks for your PR, I'll review and merge the…
      amjd on HN

Objections

  • Scraping tools like Scraper did not paginate

    From 1 comment
    • Thanks for the tip. I gave the "Scraper" extension a try, and 1) I got an error, 2) it only seems to scrape 1 page -- it doesn't paginate (or, did I miss something?). I used the…
      gabrielsroka on HN

Requests

  • Convert to a Python script

    From 1 comment
  • Turn into a Chrome extension

    From 1 comment
    • Thanks dvfjsdhgfv. If there's sufficient interest, I can easily turn it into a Chrome extension. (Edit: haha, I see what you just did there. A little recursive humor.)
      gabrielsroka on HN

Questions

  • Will HN expose favorites or upvoted items in its API

    From 2 comments
    • Our plan is for the next version of HN's API to simply serve a JSON version of every page. I'm hoping to get to that this year.
      dang on HN
    • That's great! Is there any plan of exposing authenticated content through the API too? Mainly talking about upvoted stories.
      amjd on HN

Alternatives named

  • Dogsheep hacker-news-to-sqlite

    From 2 comments
    • That would be amazing! I've been having some fun with the API recently building this tool: https://github.com/dogsheep/hacker-news-to-sqlite
      simonw on HN
    • My tool here can export all of a user's comments: https://github.com/dogsheep/hacker-news-to-sqlite Not upvoted yet as they aren't in the API I am using.
      simonw on HN
  • Reactual hacker-news-favorites-api

    From 1 comment
    • I made an API for favorites a while back. https://github.com/reactual/hacker-news-favorites-api Here's an example query: https://reactual.api.stdlib.com/hnfavs/?id=sbr464&limit=1
      sbr464 on HN
  • jaytaylor hn-utils

    From 1 comment
    • This is cool, I love HN metadata, too :) Plug for a related golang tool I wrote and use which exports favorites upvotes as structured JSON: https://github.com/jaytaylor/hn-utils…
      jaytaylor on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/22788236)