用calibre抓取网站内容发到Kindle上阅读

自己有一台Kindle 4,然后又在网上看到几篇文章关于calibre。 老赵的 使用calibre抓取2013年的MSDN Magazine 和 抓取InfoQ内容的calibre脚本,还有 @敲代码的张洋 的一篇微博。然后就有了自己也搞一个玩玩的想法

看了老赵的文章,像我这样的小白玩家还是不知道怎么弄。折腾一番,通过google和研究老赵张洋文章内容的超链接。得出下面的流程

1、 安装工具 calibre

2、如果是Mac OS,则需要手工安装Command Line工具。我的就是Mac OS系统

打开calibre客户端,然后左上角Calibre->Preferences->Advanced->Miscellaneous->install command line tools

3、安装python库 BeautifulSoup

You can install it with pip install beautifulsoup4 or easy_install beautifulsoup4

我用的是 easy_install beautifulsoup4

4、 写一个python脚本并另存为xxxx.recipe,脚本参考老赵的"抓取InfoQ内容的calibre脚本" 和 官网原文

5 、执行命令。ebook-convert xxxx.recipe xxxx.mobi

6、 把xxxx.mobi发送到Kindle邮箱

 

 

原文地址:https://www.cnblogs.com/yemsheng/p/3221064.html