| name | feedgrab-batch |
| description | Batch content grabber — bulk fetch bookmarks, user tweets, search results, author notes, wiki pages, and more from X/Twitter, Xiaohongshu, WeChat, YouTube, Feishu, Zhihu. Use when user wants to batch/bulk fetch, search keywords, or grab all posts from an account. |
feedgrab-batch — Batch Content Grabber
Bulk fetch content from any platform — bookmarks, user timelines, keyword search, album pages, wiki trees.
Trigger
Activate when user mentions batch/bulk operations:
/feedgrab-batch <command> <args>
- "Grab all my bookmarks"
- "批量抓取这个用户的推文"
- "搜索关键词 AI Agent"
- "抓取这个公众号的所有文章"
- "下载这个飞书知识库"
Prerequisites
- feedgrab installed (
which feedgrab)
- Platform-specific cookies/API keys configured (see each command below)
If not ready, suggest /feedgrab-setup.
Command Reference
X/Twitter
Bookmarks
feedgrab https://x.com/i/bookmarks
feedgrab https://x.com/i/bookmarks/2015311287715340624
User Tweets
feedgrab https://x.com/username
X_USER_TWEETS_SINCE=2026-01-01 feedgrab https://x.com/username
List Tweets
feedgrab https://x.com/i/lists/LIST_ID
X_LIST_TWEETS_DAYS=7 feedgrab https://x.com/i/lists/LIST_ID
X_LIST_TWEETS_SUMMARY=true feedgrab https://x.com/i/lists/LIST_ID
Keyword Search (x-so)
feedgrab x-so "AI Agent"
feedgrab x-so "AI Agent" --days 7
feedgrab x-so "AI Agent" --min-faves 100
feedgrab x-so "claude,cursor,copilot" --merge
feedgrab x-so "AI Agent" --raw
Output: Markdown table (sorted by views) + CSV at output/X/search/
Xiaohongshu (小红书)
Author Notes
feedgrab https://www.xiaohongshu.com/user/profile/USER_ID
XHS_USER_NOTES_SINCE=2026-01-01 feedgrab https://www.xiaohongshu.com/user/profile/USER_ID
Search Results
feedgrab "https://www.xiaohongshu.com/search_result?keyword=开学第一课&source=web_explore_feed"
Keyword Search (xhs-so)
feedgrab xhs-so "AI Agent"
feedgrab xhs-so "AI Agent" --sort popular
feedgrab xhs-so "AI Agent" --type video
feedgrab xhs-so "AI Agent" --save
feedgrab xhs-so "claude,cursor" --merge
Output: Markdown table (sorted by likes) + CSV at output/XHS/search/
WeChat (微信公众号)
By Account (mpweixin-id)
feedgrab mpweixin-id "公众号名称"
MPWEIXIN_ID_SINCE=2026-01-01 feedgrab mpweixin-id "公众号名称"
Album / Collection (mpweixin-zhuanji)
feedgrab mpweixin-zhuanji "ALBUM_URL"
MPWEIXIN_ZHUANJI_SINCE=2026-01-01 feedgrab mpweixin-zhuanji "ALBUM_URL"
Sogou Search (mpweixin-so)
feedgrab mpweixin-so "关键词"
feedgrab mpweixin-so "关键词" --limit 30
YouTube
Search (ytb-so)
feedgrab ytb-so "machine learning"
feedgrab ytb-so "AI" --order viewCount
feedgrab ytb-so "AI" --channel @3blue1brown
feedgrab ytb-so "AI" --days 30
Download
feedgrab ytb-dlv "VIDEO_URL"
feedgrab ytb-dla "VIDEO_URL"
feedgrab ytb-dlz "VIDEO_URL"
Feishu/Lark (飞书)
Wiki Batch
feedgrab feishu-wiki "WIKI_SPACE_URL"
Zhihu (知乎)
Keyword Search (zhihu-so)
feedgrab zhihu-so "AI Agent"
feedgrab zhihu-so "AI Agent" --sort hot
feedgrab zhihu-so "AI Agent" --limit 20
feedgrab zhihu-so "AI Agent" --days 30
feedgrab zhihu-so "claude,cursor" --merge
Output: Markdown table (sorted by upvotes) + CSV at output/Zhihu/search/
Environment Variables Quick Reference
| Platform | Required Variables | How to Get |
|---|
| Twitter (basic) | Cookie via feedgrab login twitter | Login in browser |
| Twitter (paid API) | TWITTERAPI_IO_KEY | twitterapi.io |
| Xiaohongshu | Cookie via feedgrab login xhs | Login in browser |
| WeChat batch | Cookie via feedgrab login wechat | Login MP backend |
| YouTube | YOUTUBE_API_KEY | Google Cloud Console |
| GitHub | GITHUB_TOKEN (optional) | GitHub Settings |
| Feishu | FEISHU_APP_ID + FEISHU_APP_SECRET | Feishu Open Platform |
| Zhihu | Cookie via feedgrab login zhihu | Login in browser |
Resume After Interruption
All batch commands support checkpoint resume — if interrupted, just re-run the same command. Already fetched items are skipped via dedup index.
Tips
- Use
feedgrab doctor <platform> to diagnose configuration issues
- Media download: set
X_DOWNLOAD_MEDIA=true / XHS_DOWNLOAD_MEDIA=true / MPWEIXIN_DOWNLOAD_MEDIA=true
- Multi-account cookie rotation for Twitter: put extra cookies in
sessions/x_2.json, x_3.json