freebora - オライリーの無料電子書籍をダウンロード
オライリーと言えば技術書で有名な会社です。技術書というとどれも高価なイメージがありますが、オライリーで掲載されている中には無料の電子書籍も多数あります。中には100ページくらいのボリュームあるものもあります。 今回紹介するfreeboraはそんなオライリーの無料電子書籍をダウンロードできるソフトウェアです。
freeboraの使い方
コマンドヘルプです。
$ free
freebora freetype-config
macbookpro-2:Files nakatsugawa$ freebora --help
usage: freebora [-h] [-v] [-V] [--dest PATH] [--overwrite] [--cat NAME]
[--list-cats-sync] [--list-sync NAME] [--fetch-sync NAME]
[--fetch-async NAME]
Download free ebooks from http://shop.oreilly.com/category/ebooks.do.
optional arguments:
-h, --help show this help message and exit
-v, --verbose Set more verbose (debugging) output.
-V, --version Show version number and quit.
--dest PATH Destination folder path, for both the URL list and/or
the downloaded PDFs. Will be created if not existing.
--overwrite Overwrite previously created file(s), for both the URL
list and/or downloaded PDFs.
--cat NAME Category of ebooks to download, e.g. data (default),
design, iot, python/programming, ... Get a full list
with --list-cats-sync.
--list-cats-sync Collect and list available ebook category names (to use
with --cat).
--list-sync NAME Collect URLs to be downloaded into given filename.
--fetch-sync NAME Download URLs sequentially from given filename.
--fetch-async NAME Download URLs in parallel from given filename.
まず最初に –list-cats-sync を使ってカテゴリを同期します。これが意味があるのかは不明ですが、その後例えば次のようにしてrubyという用語が入っている電子書籍をまとめてダウンロードできます。
$ freebora --fetch-sync ruby
freeboraを使えば電子書籍のダウンロードがあっという間に完了します。PDFでダウンロードされるので、デスクトップはもちろん、スマートフォンやタブレットでも手軽に閲覧できるでしょう。
freeboraはPython製のオープンソース・ソフトウェア(GPL v3)です。