This tool provides command line interface for scrapbox.io.
This is a tool to search pages by keywords, to print a content of a page, to print an encoded URL of a page, to print URLs linked by a page.
$ scrapbox list -h
usage: scrapbox list [options...] PROJECT [TAGs...]
Options:
--token, -t Scrapbox connect.sid used to access private project.
--host, -h Scrapbox Host. By default, "https://scrapbox.io".
--expire Local Cache Expiration. By default, 3600 seconds.
--ua User Agent. By default, "ScrapboxGoClient/x.x.x"
$ scrapbox list go-scrapbox
title having paren ( ) mark
title having plus + mark
title having question ? mark
title having slash / mark
title having whitespaces
日本語タイトルのページ
地のリンクがあるページ
複数のリンクがあるページ
文章のなかにリンクがあるページ1
文章のなかにリンクがあるページ2
$ scrapbox list go-scrapbox english
title having paren ( ) mark
title having plus + mark
title having question ? mark
title having slash / mark
title having whitespaces
$ scrapbox list go-scrapbox english paren
title having paren ( ) mark
$ scrapbox read -h
usage: scrapbox read [options...] PROJECT PAGE
Options:
--token, -t Scrapbox connect.sid used to access private project.
--host, -h Scrapbox Host. By default, "https://scrapbox.io".
--expire Local Cache Expiration. By default, 3600 seconds.
--ua User Agent. By default, "ScrapboxGoClient/x.x.x"
$ scrapbox read go-scrapbox "title having paren ( ) mark"
title having paren ( ) mark
#english #no-url #whitespace #no-slash #paren #no-plus #no-question
$ scrapbox open -h
usage: scrapbox open [options...] PROJECT PAGE
Options:
--host, -h Scrapbox Host. By default, "https://scrapbox.io".
$ scrapbox open go-scrapbox "title having paren ( ) mark"
https://scrapbox.io/go-scrapbox/title%20having%20paren%20(%20)%20mark
$ scrapbox link -h
usage: scrapbox link [options...] PROJECT PAGE
Options:
--token, -t Scrapbox connect.sid used to access private project.
--host, -h Scrapbox Host. By default, "https://scrapbox.io".
--expire Local Cache Expiration. By default, 3600 seconds.
--ua User Agent. By default, "ScrapboxGoClient/x.x.x"
$ scrapbox link go-scrapbox "複数のリンクがあるページ"
https://www.google.co.jp
https://www.google.com
SCRAPBOX_TOKEN
: specifytoken
instead of--token
option.SCRAPBOX_HOST
: specifyhost
instead of--host
option.SCRAPBOX_EXPIRATION
: specifyexpire
instead of--expire
option.SCRAPBOX_USER_AGENT
: specifyua
(user agent
) instead of--ua
option.SCRAPBOX_HOME
: specifyscrapbox
home directory. By default~/.scrapbox/
To access private project, use --token
option:
$ scrapbox <sub command> --token s%3A... <arguments>
To access Scrapbox Enterprise, use --host
option:
$ scrapbox <sub command> --host http://host:port <arguments>
To ignore local caches, set expire
to zero:
$ scrapbox <sub command> --expire <expiration> <arguments>
To install, use go get
:
$ go get github.com/ohtomi/scrapbox/cmd/scrapbox
Or get binary from release page.
- Fork (https://github.com/ohtomi/scrapbox/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request
MIT