Skip to content

feat(jisilu): add timeline and question adapters for jisilu.cn#139

Open
yetingsky wants to merge 1 commit intojackwener:mainfrom
yetingsky:feat/jisilu-adapter
Open

feat(jisilu): add timeline and question adapters for jisilu.cn#139
yetingsky wants to merge 1 commit intojackwener:mainfrom
yetingsky:feat/jisilu-adapter

Conversation

@yetingsky
Copy link

Summary

  • Add jisilu timeline command to fetch personal timeline from jisilu.cn (requires login)
  • Add jisilu question command to fetch post content and comments from jisilu.cn

Features

timeline

  • Fetches personal timeline from /home/mine/#all
  • Shows post id, type (post/reply), title, author, content preview, and url
  • Supports --limit parameter

question

  • Fetches post content and all comments
  • Shows author, content, and time for each reply
  • Supports --limit parameter to limit number of comments
  • Accepts both post ID or full URL

Usage

# Get personal timeline
opencli jisilu timeline --limit 20

# Get post details
opencli jisilu question --id 519605
opencli jisilu question --id https://www.jisilu.cn/question/519605 --limit 100

Testing

Both commands have been tested successfully with various limit values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant