Skip to content

Unofficial CLI tool to see Qiita articles using its API

Notifications You must be signed in to change notification settings

momotaro98/qiic

Repository files navigation

qiic

qiic is an unofficial CLI tool to see Qiita articles using its API.

qiic_demo

Features

  • check your articles LGTM ranking
  • get your Stocked Qiita articles
  • show the articles with readable table
  • open the articles in your browser with an allocated number

Installation

Option 1: Only for MacOS user, Homebrew

brew tap momotaro98/qiic
brew install momotaro98/qiic/qiic

Option 2: Go Get

If you have go command, executing go install is also easy.

go install github.com/momotaro98/qiic/cmd/qiic@latest

Setup

  1. Set Environment Variable QIITA_USERNAME, your Qiita user name.
  2. Execute first update command.

Usage

Commands:

r | rank           update LGTM ranking articles
s | stock          update stocked articles to local
l | ls | list       list all local articles
a | access | open   access the article page with your browser

Basic Usage

get your 20 updated Qiita stocked article

qiic s  # get your updated Qiita stocked articles and show them

You'll see the 15 articles' list from latest ones Exmaple:

┌────┬───────────────────────────────────────────────────┬─────────────────────┬─────┐
|A No|                       TITLE                       |         TAG         |STOCK|
|────|───────────────────────────────────────────────────|─────────────────────|─────|
|1   |Go のクロスコンパイル環境構築                            |Go                   |  354|
|────|───────────────────────────────────────────────────|─────────────────────|─────|
|2   |GitHubのリリース機能を使う                              |GitHub               |  272|
|────|───────────────────────────────────────────────────|─────────────────────|─────|
|3   |Golang Goの並列処理を学ぶ(goroutine, channel)         |Go,golang            |   28|
|────|───────────────────────────────────────────────────|─────────────────────|─────|
.
.
.
|────|───────────────────────────────────────────────────|─────────────────────|─────|
|15  |Go言語: var, init, mainが実行される順番                |Go                   |   10|
|────|───────────────────────────────────────────────────|─────────────────────|─────|

You can open the article in your browser with Access Number(A No) with qiic a [A No]

qiic a 2  # Open the specified article (A No is 2) in your browser

Page specifed update

qiic rank -p 2

Development and Contribution

Please check Makefile and you can create any issues and pull requests