0.2.2 • Published 5 years ago
recatchable v0.2.2
reCatchable
Turn a site into a book. Upload it to your reMarkable.
Install
❯ git clone https://gitlab.com/lapwat/reCatchable.git
❯ cd reCatchable
❯ yarn # or npm installUsage
❯ ./index.js --help
Usage: ./index.js [options]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-h, --home Home page url [string] [required]
--home-html Html of the home page [string]
-s, --selector Table of content HTML selector [string]
-l, --limit Limit the number of pages downloaded [number]
-n, --title Title, defaults to Home page title [string]
-a, --author Author [string] [default: "Unknown"]
-u, --upload Upload book to reMarkable [boolean] [default: false]
-t, --token-file File to read/write reMarkable token [string] [default: "remarkable.token"]
Examples:
./index.js -h https://www.halfbakedharvest.com/category/recipes -s .recipe-block
./index.js -h https://wiki.polkadot.network/docs/en/getting-started -s .navItem
./index.js -h https://dev.to -s 'a[id*="article-link-"]' -u--home-html On some websites, the table of content is not present in the original HTML and is loaded later with JavaScript asynchronous queries. You can use this option to specify an HTML file for the Home page.
Dependencies
website-scraperDownload pagesreadabilityExtract content from pagesepub-genConvert HTML to EPUBreMarkable-typescriptUpload EPUB to reMarkable
Todo
- Exclude images option