News for hackers. Stuff that matters.
Re:Show HN: Archivy-HN – automatically save and download you... by ashish01 on Monday December 28, 2020 @02:27AM (#25557438)
Cool. If you want an smaller alternative, just getting upvoted ids is easy enough in python

    import requests
    from bs4 import BeautifulSoup


    with requests.Session() as session:
        page = 1
        while True:
            resp = session.get(
                f"https://news.ycombinator.com/upvoted?id=ashish01&p={page}",
                cookies={"user": "get this from your browser"},
            )
            tree = BeautifulSoup(resp.text)
            links = [x["href"] for x in tree.select(".subtext .age a")]
            if len(links) == 0:
                break
            for i, link in enumerate(links):
                print(page, i, link.split("=")[1])
            page = page + 1
Re:Show HN: Archivy-HN – automatically save and download you... by pabs3 on Monday December 28, 2020 @02:38AM (#25557473)
You could also use the haxor Python library that wraps the HN API:

https://github.com/avinassh/haxor