Fetches the top stories from Hacker News and saves them as bookmarks in Karakeep, tagged #hackernews. Most everything done by Clod.
bashcurljq
cp .env.example .env
# Edit .env with your Karakeep URL and API tokenGet your API token from Karakeep: Settings → API Keys.
# Import top 100 stories (default)
./orange.sh
# Import top 25 stories
./orange.sh -n 25- Fetches the top N story IDs from the HN Firebase API
- For each story, creates a bookmark in Karakeep with the title and URL
- Tags each bookmark with
hackernews - Sleeps 2 seconds between requests to be polite to the HN API