A terminal-first CLI for Juejin.
Current scope:
- list article categories
- browse category feeds
- browse article hot rankings
- browse hot ranked columns
- browse hot ranked collection sets
- browse hot ranked authors
- browse the recommended home feed
- search articles
- list a user's posts
- read an article by URL, article ID, or short index
- export article content as Markdown
uv sync
uv run juejin --help# Categories
juejin categories
# Feed
juejin feed --category backend --limit 5
juejin feed --category ai --json
# Recommended
juejin recommended --limit 5
# Hot rankings
juejin hot --limit 10
juejin hot --category backend --limit 5
juejin hot --type collect --category all --json
juejin hot-columns --limit 10
juejin hot-collections --limit 10
juejin hot-authors --category ai --period weekly --limit 5
juejin hot-authors --category backend --period monthly --json
# Search
juejin search "python" --limit 5
juejin search "python" --sort newest --yaml
juejin search "python" --limit 3
# User posts
juejin user-posts 4371313961738616
juejin user-posts https://juejin.cn/user/4371313961738616/posts --sort popular
# Read by article ID, full URL, or short index from the latest list output
juejin read 7540497727161417766
juejin read https://juejin.cn/post/7540497727161417766
juejin read 1
# Export as Markdown
juejin export-md 7540497727161417766 -o article.mdPagination:
feed,recommended,search, anduser-postsprint anext cursorwhen more results are available- reuse it with
--cursor <value>to continue hot,hot-columns,hot-collections, andhot-authorsreturn fixed rank lists and do not use cursor paginationread 1andexport-md 1resolve against the latest article list output fromfeed,hot,recommended,search, oruser-posts
Hot author categories:
backendfrontendclientaitoolscareerreading