Hacker News δΈζ AI ηΏ»θ―
https://github.com/liuzhch1/hacker-news-cn.git
Hacker News ζη« AI ηΏ»θ―ε·₯ε ·οΌε°θ±ζζη« θͺε¨ηΏ»θ―ζδΈζεΉΆηζ HTML ι‘΅ι’γ
ε ¨ι¨δ½Ώη¨ Cursor AI ηΌεοΌjust some code only written once.
export GOOGLE_API_KEY=<your-api-key>
uv run src/main.py
pnpm start ./hn_stories.json ./output && npx serve output
To generate HTML pages for all weekly archives stored in R2:
# Process new articles and generate all weekly pages
pnpm start ./hn_stories.json ./output --all-weeks
# Only generate all weekly pages without processing new articles
pnpm generate-all-weeks ./output
This will: