Giter VIP home page Giter VIP logo

v2ex-cli's Introduction

V2EX CLI Build Status npm version npm

install

安装

需要 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 支持这个项目...

预览 点击打开
  • 安装

  • 列表

  • 阅读

  • 节点

  • 回复

v2ex-cli's People

Contributors

wittbulter avatar danielruf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.