boksynt

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

README

boksynt

boksynt is a simple CLI tool for downloading and converting articles to the EPUB format so that they can be put on an e-book reader or just read without any clutter and offline in your favorite EPUB reading software.

Installation

To use the latest release:

  1. Dowload the latest binary release from GitHub and run it directly with ./boksynt or put it in your PATH so you can run boksynt from anywhere.
  2. To use the latest development version:
    1. Clone this repo.
    2. You can immediately use it with go run main.go.

Requirements

You need to have pandoc installed for boksynt to work. Other dependencies are specified in go.mod and should be handled automatically if you're running boksynt from the cloned repo.

Usage

The following flags are available:

Usage of Boksynt:
  -f, --file string
                Path to file with URLs to articles to be fetched and converted
  -o, --output-dir string
                Directory where the final epub files should be placed
  -t, --tag string
                Comma separated list of tags that should be added to articles

The flow is:

  1. Create a file with URLs that you want downloaded and converted.
  2. Run the app and provide the path to your file to the --file flag.

Running the following:

boksynt --file urls --output-dir articles --tag "Newspaper articles"

You should get output that looks somewhat like this:

usage-screenshot

If the file urls has the following content:

https://www.theatlantic.com/international/archive/2022/06/young-ukrainians-ukraine-russia-war/661213/
https://www.theatlantic.com/culture/archive/2022/06/irma-vep-tv-series-review/661230/
https://theintercept.com/2022/06/09/ice-lexisnexis-mass-surveillances/
https://www.theguardian.com/australia-news/2022/jun/09/65000-year-old-swiss-army-knife-proves-ancient-humans-shared-knowledge-research-says

Development status

This is a work in progress, but the basic functionality is there. Third-party software Go-Readability which is a Golang port of Mozilla Readability handles the actual parsing of websites, so that part should be pretty mature.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL