GitHub - WittBulter/v2ex-cli: v2ex-cli
source link: https://github.com/WittBulter/v2ex-cli
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
V2EX CLI
需要 NodeJS 6.0+ 环境 (更低版本未测试) NodeJS 安装
npm i -g v2ex-cli
- 增加自己的 cookie:
v2 install
获取 cookie 请在登录后打开浏览器控制台,在
network
中找地址包含www.v2ex.com
的链接,拷贝头信息中所有的 cookie 值 需要拷贝所有的 cookie 值,注意是Request Header
中包含的。 可以参考这个 Issue
-
列表阅读:
v2 show
-
翻页:
v2 go {number}
默认v2 go
前往下一页 默认v2 go -p
返回上一页 -
阅读指定帖子:
v2 read {postID}
如果曾阅读过列表,只输入 id 的后几位即可 -
回复帖子:
v2 reply
回复上一次阅读的帖子 -
节点,获取所有节点:
v2 nodes
-
节点,选取一个节点阅读:
v2 nodes {node_name}
如:v2 nodes programmer
-
节点,翻页:同翻页
-
查看缓存或清除:
v2 cache
,v2 cache -d
-
卸载:
v2 implide
-
帮助:
v2
,v2 {command} -h
工具暂时没有开放登录,只能通过 v2 install
手动添加 cookie 访问。因为目前 v2ex 添加了验证码,
显示图片不能在所有终端做到非常好的兼容。同时错误的登录会导致 IP 被封锁一天。(v2ex 近期的策略太暴力了)
如果你喜欢,记得点一个 star 支持这个项目...
预览 点击打开
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK