2021-09-14 23:27:26 +02:00
2021-09-14 22:21:44 +02:00
2021-09-14 22:52:24 +02:00
2021-09-14 22:43:22 +02:00
2021-09-14 22:21:44 +02:00
2021-09-14 22:51:08 +02:00
2021-09-14 23:27:26 +02:00

Installation

From binary

curl https://github.com/lapwat/papeer/releases/download/v0.0.1/papeer-v0.0.1 > papeer
chmod +x papeer
mv papeer /usr/local/bin 

From source

go install github.com/lapwat/papeer

Usage

Browse the web in the eink era

Usage:
  papeer [flags]
  papeer [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  get         Scrape URL content
  help        Help about any command
  ls          Print table of content
  version     Print the version number of papeer

Flags:
  -d, --delay int         wait before downloading next chapter, in milliseconds (default -1)
  -f, --format string     file format [md, epub, mobi] (default "md")
  -h, --help              help for papeer
  -i, --include           include URL as first chapter, in resursive mode
  -o, --output string     output file
  -q, --quiet             do not show progress bars
  -r, --recursive         create one chapter per natigation item
  -s, --selector string   table of content CSS selector
      --stdout            print to standard output

Use "papeer [command] --help" for more information about a command.

Autocompletion

Execute this command in your current shell, or add it to your .bashrc.

. <(papeer completion bash)

Type papeer completion bash -h for more information.

You can replace bash by your own shell (zsh, fish, powershell).

Dependencies

  • cobra command line interface
  • go-readability extract content from HTML
  • html-to-markdown convert HTML to Markdown
  • go-epub convert HTML to EPUB
  • colly query HTML trees
  • uiprogress display progress bars
Description
Scrape the web in the eink era. Convert websites into ebooks and markdown.
Readme 731 KiB
Languages
Go 99.5%
Makefile 0.5%