No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
aozoracli
bin
.gitignore
LICENSE
README.ja.md
README.md
requirements.txt
setup.py

README.md

CLI tool for Aozora Bunko API

(Japanese / 日本語)

Requirements

Getting Started

$ pip install aozora-cli

For Development

  1. git clone https://github.com/aozorahack/aozora-cli
  2. cd aozora-cli
  3. export PYTHONPATH=.

Environment Variable

  • AOZORAPI_HOST: host or host:port of Aozora Bunko API server (default: www.aozorahack.net)

Commands

books

$ ./bin/aozora books

Options

$ ./bin/aozora books --help
Usage: aozora books [OPTIONS]

  list books

Options:
  --id INTEGER
  --title TEXT
  --author TEXT
  --output [json|txt]
  --query TEXT
  --help               Show this message and exit.

persons

$ ./bin/aozora persons

Options

$ ./bin/aozora persons --help
Usage: aozora persons [OPTIONS]

  list persons

Options:
  --id INTEGER
  --name TEXT
  --output [json|txt]
  --query TEXT
  --help               Show this message and exit.

content

$ ./bin/aozora content --id <book_id>

Options

$ ./bin/aozora content --help

Usage: aozora content [OPTIONS]

  show content

Options:
  --id INTEGER         [required]
  --format [txt|html]
  --output [txt]
  --help               Show this message and exit.