通过 OpenCLI 从各种网站获取数据,无需 API 密钥,复用 Chrome 登录状态。
opencli - 使用 OpenCLI 命令twitter, reddit, weibo, zhihu, xiaohongshu, jikebilibili, youtubehackernews, bbc, reuters, linux-dov2ex, xueqiu, weread, stackoverflownpm install -g @jackwener/openclibash
opencli <site> <command> [options]
# 通用选项
--limit <n> # 限制返回数量
-f, --format # 输出格式: table, json, yaml, md, csv (默认 table)
-v, --verbose # 调试输出
命令说明参数dumpDump the DOM to help AI understand the UI-extract-codeExtract multi-line code blocks from the current Antigravity conversation-modelSwitch the active LLM model in Antigravityname``newStart a new conversation / clear context in Antigravity-readRead the latest chat messages from Antigravity AIlast``sendSend a message to Antigravity AI via the internal Lexical editormessage``serve--statusCheck Antigravity CDP connection and get current page state-watchStream new chat messages from Antigravity in real-time-
命令说明参数episodesList recent episodes of an Apple Podcast (use ID from search)id, limit``searchSearch Apple Podcastskeyword, limit``topTop podcasts chart on Apple Podcastslimit, country
命令说明参数flowBarchart unusual options activity / options flowtype, limit``greeksBarchart options greeks overview (IV, delta, gamma, theta, vega)symbol, expiration, limit``optionsBarchart options chain with greeks, IV, volume, and open interestsymbol, type, limit``quoteBarchart stock quote with price, volume, and key metricssymbol
命令说明参数newsBBC News headlines (RSS)limit
命令说明参数download下载B站视频(需要 yt-dlp)bvid, output, quality``dynamicGet Bilibili user dynamic feedlimit``favorite我的默认收藏夹limit, page``feed关注的人的动态时间线limit, type``following获取 Bilibili 用户的关注列表uid, page, limit``history我的观看历史limit``hotB站热门视频limit (default: 20)meMy Bilibili profile info-rankingGet Bilibili video ranking boardlimit``searchSearch Bilibili videos or userskeyword, type, page, limit``subtitle获取 Bilibili 视频的字幕bvid, lang``user-videos查看指定用户的投稿视频uid, limit, order, page
命令说明参数chatlistBOSS直聘查看聊天列表(招聘端)page, limit, job_id``chatmsgBOSS直聘查看与候选人的聊天消息uid, page``detailBOSS直聘查看职位详情security_id``resumeBOSS直聘查看候选人简历(招聘端)uid``searchBOSS直聘搜索职位query, city, experience, degree, salary, industry, page, limit``sendBOSS直聘发送聊天消息uid, text
命令说明参数assignments学习通作业列表course, status, limit``exams学习通考试列表course, status, limit
命令说明参数askSend a prompt and wait for the AI response (send + wait + read)text, timeout``newOpen a new chat in ChatGPT Desktop App-readCopy the most recent ChatGPT Desktop App response to clipboard and read it-sendSend a message to the active ChatGPT Desktop App windowtext``statusCheck if ChatGPT Desktop App is running natively on macOS-
命令说明参数askSend a prompt and wait for the AI responsetext, timeout``exportExport the current ChatWise conversation to a Markdown fileoutput``historyList conversation history in ChatWise sidebar-modelGet or switch the active AI model in ChatWisemodel_name``newStart a new conversation in ChatWise-readRead the current ChatWise conversation history-screenshotCapture a snapshot of the current ChatWise windowoutput``sendSend a message to the active ChatWise conversationtext``statusCheck active CDP connection to ChatWise Desktop-
命令说明参数askSend a prompt and wait for the AI responsetext, timeout``dumpDump the DOM and Accessibility tree of Codex for reverse-engineering-exportExport the current Codex conversation to a Markdown fileoutput``extract-diffExtract visual code review diff patches from Codex-historyList recent conversation threads in Codex-modelGet or switch the currently active AI model in Codex Desktopmodel_name``newStart a new Codex conversation thread / isolated workspace-readRead the contents of the current Codex conversation thread-screenshotCapture a snapshot of the current Codex windowoutput``sendSend text/commands to the Codex AI composertext``statusCheck active CDP connection to OpenAI Codex App-
命令说明参数add-to-cartAdd a Coupang product to cart using logged-in browser sessionproductId, url``searchSearch Coupang products with logged-in browser sessionquery, page, limit, filter
命令说明参数search携程旅行搜索query, limit
命令说明参数askSend a prompt and wait for the AI responsetext, timeout``composerSend a prompt directly into Cursor Composer (Cmd+I shortcut)text``dumpDump the DOM and Accessibility tree of Cursor for reverse-engineering-exportExport the current Cursor conversationoutput``extract-codeExtract multi-line code blocks from the current Cursor conversation-historyList recent chat sessions from the Cursor sidebar-modelGet or switch the currently active AI model in Cursormodel_name``newStart a new Cursor chat or Composer session-readRead the current Cursor chat/composer conversation history-screenshotCapture a snapshot of the current Cursor windowoutput``sendSend a prompt directly into Cursor Composer/Chattext``statusCheck active CDP connection to Cursor AI Editor-
命令说明参数channelsList channels in the current Discord server-membersList online members in the current Discord channel-readRead recent messages from the active Discord channelcount``searchSearch messages in the current Discord server/channel (Cmd+F)query``sendSend a message in the active Discord channeltext``serversList all Discord servers (guilds) in the sidebar-statusCheck active CDP connection to Discord Desktop-
命令说明参数newCreate a new message or document in Feishu-readRead the current chat content by selecting all and copying-searchOpen Feishu global search and type a query (Cmd+K)query``sendSend a message in the active Feishu (Lark) conversationtext``statusCheck if Feishu (Lark) Desktop is running on macOS-
命令说明参数askSend a message to Grok and get responseprompt, timeout, new
命令说明参数topHacker News top storieslimit (default: 20)
命令说明参数topTop upvoted Hugging Face papers-
命令说明参数comment评论即刻帖子id, text``create发布即刻动态text``feed即刻首页动态流limit``like点赞即刻帖子id``notifications即刻通知limit``post即刻帖子详情及评论id``repost转发即刻帖子id, text``search搜索即刻帖子keyword, limit``topic即刻话题/圈子帖子id, limit``user即刻用户动态username, limit
命令说明参数generate即梦AI 文生图 — 输入 prompt 生成图片prompt, model, wait``history即梦AI 查看最近生成的作品limit
命令说明参数searchSearch LinkedIn jobsquery, location, limit, start, details, company, experience_level, job_type, date_posted, remote
命令说明参数categorieslinux.do 分类列表limit``categorylinux.do 分类内话题slug, id, limit``hotlinux.do 热门话题limit, period``latestlinux.do 最新话题limit``search搜索 linux.dokeyword, limit``topiclinux.do 帖子详情和回复id
命令说明参数likeLike/unlike the currently playing song-lyricsGet the lyrics of the currently playing song-nextSkip to the next song-playToggle play/pause for the current song-playingGet the currently playing song info-playlistShow the current playback queue / playlist-prevGo back to the previous song-searchSearch for songs, artists, albums, or playlistsquery``statusCheck CDP connection to NeteaseMusic Desktop-volumeGet or set the volume level (0-100)level
命令说明参数exportExport the current Notion page as Markdownoutput``favoritesList pages from the Notion Favorites section in the sidebar-newCreate a new page in Notiontitle``readRead the content of the currently open Notion page-searchSearch pages and databases in Notion via Quick Find (Cmd+P)query``sidebarList pages and databases from the Notion sidebar-statusCheck active CDP connection to Notion Desktop-writeAppend text content to the currently open Notion pagetext
命令说明参数commentPost a comment on a Reddit postpost_id, text``frontpageReddit Frontpage / r/alllimit``hotReddit 热门帖子subreddit, limit``popularReddit Popular posts (/r/popular)limit``readRead a Reddit post and its commentspost_id, sort, limit, depth, replies, max_length``saveSave or unsave a Reddit postpost_id, undo``savedBrowse your saved Reddit postslimit``searchSearch Reddit Postsquery, subreddit, sort, time, limit``subredditGet posts from a specific Subredditname, sort, time, limit``subscribeSubscribe or unsubscribe to a subredditsubreddit, undo``upvoteUpvote or downvote a Reddit postpost_id, direction``upvotedBrowse your upvoted Reddit postslimit``user-commentsView a Reddit user's comment historyusername, limit``user-postsView a Reddit user's submitted postsusername, limit``userView a Reddit user profileusername
命令说明参数searchReuters 路透社新闻搜索query, limit
命令说明参数search什么值得买搜索好价keyword, limit
命令说明参数bountiesActive bounties on Stack Overflowlimit``hotHot Stack Overflow questionslimit``searchSearch Stack Overflow questionsquery, limit``unansweredTop voted unanswered questions on Stack Overflowlimit
命令说明参数acceptAuto-accept DM requests containing specific keywordskeyword, max``articleFetch a Twitter Article (long-form content) and export as Markdowntweet_id``bookmarkBookmark a tweeturl``bookmarksFetch Twitter/X bookmarkslimit``deleteDelete a specific tweet by URLurl``download下载 Twitter/X 媒体(图片和视频)username, tweet-url, limit, output``followFollow a Twitter userusername``followersGet accounts following a Twitter/X useruser, limit``followingGet accounts a Twitter/X user is followinguser, limit``likeLike a specific tweeturl``notificationsGet Twitter/X notificationslimit``postPost a new tweet/threadtext``profileFetch a Twitter user profile (bio, stats, etc.)username``reply-dmSend a message to recent DM conversationstext, max, skip-replied``replyReply to a specific tweeturl, text``searchSearch Twitter/X for tweetsquery, limit``threadGet a tweet thread (original + all replies)tweet_id, limit``timelineFetch Twitter Home Timelinelimit``trendingTwitter/X trending topicslimit``unbookmarkRemove a tweet from bookmarksurl``unfollowUnfollow a Twitter userusername
命令说明参数dailyV2EX 每日签到并领取铜币-hotV2EX 热门话题limit``latestV2EX 最新话题limit``meV2EX 获取个人资料 (余额/未读提醒)-notificationsV2EX 获取提醒 (回复/由于)limit``topicV2EX 主题详情和回复id
命令说明参数chatsOpen the WeChat chats panel (conversation list)-contactsOpen the WeChat contacts panel-readRead the current chat content by selecting all and copying-searchOpen WeChat search and type a query (find contacts or messages)query``sendSend a message in the active WeChat conversation via clipboard pastetext``statusCheck if WeChat Desktop is running on macOS-
命令说明参数hot微博热搜limit
命令说明参数bookView book details on WeReadbookId``highlightsList your highlights (underlines) in a bookbookId, limit``notebooksList books that have highlights or notes-notesList your notes (thoughts) on a bookbookId, limit``rankingWeRead book rankings by categorycategory, limit``searchSearch books on WeReadkeyword, limit``shelfList books on your WeRead bookshelflimit
命令说明参数creator-note-detail小红书单篇笔记详情页数据note_id``creator-notes-summary小红书最近笔记批量摘要limit``creator-notes小红书创作者笔记列表 + 每篇数据limit``creator-profile小红书创作者账号信息 (粉丝/关注/获赞/成长等级)-creator-stats小红书创作者数据总览 (观看/点赞/收藏/评论/分享/涨粉,含每日趋势)period``download下载小红书笔记中的图片和视频note_id, output``feed小红书首页推荐 Feedlimit``notifications小红书通知 (mentions/likes/connections)type, limit``search搜索小红书笔记keyword, limit``userGet public notes from a Xiaohongshu user profileid, limit
命令说明参数episodeView details of a Xiaoyuzhou podcast episodeid``podcast-episodesList recent episodes of a Xiaoyuzhou podcast (up to 15, SSR limit)id, limit``podcastView a Xiaoyuzhou podcast profileid
命令说明参数feed获取雪球首页时间线(关注用户的动态)page, limit``hot-stock获取雪球热门股票榜limit, type``hot获取雪球热门动态limit``search搜索雪球股票(代码或名称)query, limit``stock获取雪球股票实时行情symbol``watchlist获取雪球自选股列表category, limit
命令说明参数quoteYahoo Finance 股票行情symbol
命令说明参数searchSearch YouTube videosquery, limit``transcriptGet YouTube video transcript/subtitles-videoGet YouTube video metadata (title, views, description, etc.)url
命令说明参数download导出知乎文章为 Markdown 格式url, output, download-images``hot知乎热榜limit``question知乎问题详情和回答id, limit``search知乎搜索keyword, limit
格式说明使用场景table表格格式(默认)人类阅读jsonJSON 格式程序处理、数据提取yamlYAML 格式配置文件、数据序列化mdMarkdown 格式文档生成csvCSV 格式数据分析、Excel 导入
bash
# 检查 Browser Bridge 连接状态
opencli doctor
# 实时测试浏览器连接
opencli doctor --live
# 交互式设置
opencli setup
# 列出所有可用命令
opencli list
登录状态: 浏览器命令复用 Chrome 登录状态,确保已在 Chrome 中登录目标网站
Chrome 扩展: 必须安装 Browser Bridge 扩展
命令模式:
[public] - 公开 API,无需登录[cookie] - 需要 Chrome 登录状态[ui] - UI 自动化,需要应用在前台运行输出解析: 使用 -f json 格式便于程序解析
调试: 使用 -v 参数查看详细日志