id: ce08e3cd5c1441b8aa748ca8d7d41fd6
parent_id: 
item_type: 1
item_id: 92d12e2840c34509a74519c667d9d688
item_updated_time: 1764345576820
title_diff: "[{\"diffs\":[[1,\"利用calibre生成mobi电子书\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":18}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>利用calibre生成mobi电子书</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"application-data:2525275\\\" content=\\\"6692893/s30/a0b7dd76-b4ff-4b6a-8a7a-c591aac4ceff/app.yinxiang.com\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"13319\\\"></a>\\\r\\\n<h1>利用calibre生成mobi电子书</h1>\\\r\\\n\\\r\\\n<div><span><br/><div style=\\\"font-size: 16px\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:'Helvetica Neue', Helvetica, 'Microsoft YaHei', 'WenQuanYi Micro Hei', Arial, sans-serif;font-size:100%;vertical-align:baseline;line-height:1.5;color:rgb(129, 124, 124);background:rgb(221, 221, 221);\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;overflow:hidden;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;background:rgb(250, 250, 250);line-height:1.8;transition:margin 0.5s ease-out;-webkit-transition:margin 0.5s ease-out;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">\\\n\\t\\t\\\n\\t\\t\\\n\\t\\t<h2 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:180%;vertical-align:baseline;line-height:1.2em;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">about Calibre</h2>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><img src=\\\":/6402003ec5cd43cfa48423432b2c2add\\\" type=\\\"image/jpeg\\\" data-filename=\\\"gui.jpeg\\\" alt=\\\"calibre 主界面\\\" height=\\\"603\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"800\\\"/></p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><img src=\\\":/9840b9cffaf6448d8721250f396af20c\\\" type=\\\"image/png\\\" data-filename=\\\"convert.png\\\" alt=\\\"calibre 管理书籍\\\" height=\\\"636\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"800\\\"/></p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><img src=\\\":/06247a299b614ceb83b1293520387726\\\" type=\\\"image/png\\\" data-filename=\\\"viewer.png\\\" alt=\\\"calibre 阅读书籍\\\" height=\\\"800\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"794\\\"/></p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><img src=\\\":/b13f3239eb8f460080ba31a41c9085c3\\\" type=\\\"image/png\\\" data-filename=\\\"stanza_and_calibre.png\\\" alt=\\\"calibre\\\" height=\\\"719\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"800\\\"/></p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">calibre是一个自由<strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">开源</strong>的电子书软件套装，可以用来组织、存放、以及管理电子书，支持大多数的电子书格式。同时也支持与许多流行的电子书阅读器进行同步，并可能在DRM的限制下转换电子书的格式。</p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">即calibre可以<strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">组织管理</strong>你下载的大量藏书，为他们加tag等等，也可以<strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">阅读</strong>mobi，epub等电子书，还可以方便的在各种格式间<strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">转换</strong>。甚至可以<strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">抓取新闻</strong>制成电子书。</p>\\\n<h3 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">获取</h3>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><a href=\\\"http://calibre-ebook.com/download\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">点击这里下载</a><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/>calibre支持windows、OS X、Linux以及Portable版本。</p>\\\n<h2 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:180%;vertical-align:baseline;line-height:1.2em;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">抓取网页获得电子书</h2>\\\n<h3 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">步骤</h3>\\\n<ol style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;list-style:none;padding-left:3em;\\\">\\\n<li style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;list-style-type:decimal;\\\"><p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">首先，你需要写一个recipe文件，实际就是一个通常不到50行的python脚本(当然，长度视网页复杂度而定)。 </p>\\\n</li>\\\n<li style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;list-style-type:decimal;\\\"><p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">在calibre里载入这个recipe脚本，calibre自动多线程下载，打包成mobi格式文件。 </p>\\\n</li>\\\n<li style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;list-style-type:decimal;\\\"><p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">你就得到了需要的mobi电子书。  </p>\\\n</li>\\\n</ol>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">让我们分步详细说明一下。</p>\\\n<h4 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">创建recipe文件</h4>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">下面以<a href=\\\"http://iissnan.com/progit/\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">Pro Git 中文版</a>为例，详细说明如何将在线网页制作为mobi文件。</p>\\\n<div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:1em 2%;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;font-size:100%;background:rgb(29, 31, 33);\\\"><table style=\\\"font-size:100%;font-weight:inherit;font-style:inherit;font-variant:inherit;-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-family:inherit;vertical-align:middle;border-collapse:collapse;border-spacing:0px;width:auto;\\\"><tbody style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><tr style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(102, 102, 102);line-height:1.5;background:rgb(29, 31, 33);text-align:right;padding-right:1.5em;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">1</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">2</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">3</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">4</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">5</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">6</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">7</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">8</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">9</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">10</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">11</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">12</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">13</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">14</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">15</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">16</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">17</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">18</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">19</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">20</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">21</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">22</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">23</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">24</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">25</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">26</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">27</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">28</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">29</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">30</div></pre></td><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;background:rgb(29, 31, 33);\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">from</span> calibre.web.feeds.recipes <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">import</span> BasicNewsRecipe</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(204, 102, 102);\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">class</span> <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(240, 198, 116);\\\">Pro_Git_Chinese</span><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">(BasicNewsRecipe)</span>:</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    title = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'Pro_Git_Chinese'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    description = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'Pro_Git_Chinese'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    cover_url = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'http://iissnan.com/progit/assets/img/pro-git-cover.jpeg'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    url_pre = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'http://iissnan.com/progit/'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    no_stylesheets = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">True</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    keep_only_tags = [{ <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'class'</span>: <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'col-md-8'</span> }]</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">    <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(129, 162, 190);\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">def</span> <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(129, 162, 190);\\\">parse_index</span><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">(self)</span>:</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(150, 152, 150);\\\">#recipe的核心method，通过分析目录页，找到各页面链接，并抓取内容，返回一个较复杂的数据结构</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        soup = self.index_to_soup(self.url_pre)<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(150, 152, 150);\\\">#目录页</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        div = soup.find(<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'ul'</span>, { <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'class'</span>: <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'toc'</span> })<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(150, 152, 150);\\\">#目录页的寻找范围</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        articles = []</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">for</span> link <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">in</span> div.findAll(<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'a'</span>):</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">            til = link.contents[<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">0</span>].strip()</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">            url = self.url_pre +<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'/'</span>+ link[<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'href'</span>]</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">            a = { <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'title'</span>: til, <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'url'</span>: url }</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">            articles.append(a)</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        results = [(<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\">'Pro_Git_Chinese'</span>, articles)]</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"> </div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">        <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">return</span> results</div></pre></td></tr></tbody></table></div>\\\n\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><strong style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:bold;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">详细解释一下：</strong></p>\\\n<h3 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">class</h3>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">继承自基类<code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">BasicNewsRecipe</code>，这使我们只需要输入少量代码即可套用基类中的大量代码，更加简单&amp;迅速。<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/>有关基类<code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">BasicNewsRecipe</code>的更多信息<a href=\\\"http://manual.calibre-ebook.com/_modules/calibre/web/feeds/news.html#BasicNewsRecipe\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">参见官方文档</a></p>\\\n<h3 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">整体属性设置</h3>\\\n<div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:1em 2%;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;font-size:100%;background:rgb(29, 31, 33);\\\"><table style=\\\"font-size:100%;font-weight:inherit;font-style:inherit;font-variant:inherit;-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-family:inherit;vertical-align:middle;border-collapse:collapse;border-spacing:0px;width:auto;\\\"><tbody style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><tr style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(102, 102, 102);line-height:1.5;background:rgb(29, 31, 33);text-align:right;padding-right:1.5em;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">1</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">2</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">3</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">4</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">5</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">6</div></pre></td><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;background:rgb(29, 31, 33);\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">title = 'Pro_Git_Chinese'</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">description = 'Pro_Git_Chinese'</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">cover_url = 'http:<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(150, 152, 150);\\\">//iissnan.com/progit/assets/img/pro-git-cover.jpeg'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">url_pre = 'http:<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(150, 152, 150);\\\">//iissnan.com/progit/'</span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">no_stylesheets = True</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">keep_only_tags = [{ 'class': 'col-md-<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">8</span>' }]</div></pre></td></tr></tbody></table></div>\\\n\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">title</code>：标题<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">description</code>：描述<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">cover_url</code>：封面图<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">url_pre</code>：自定义的网址前缀，非必须<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">no_stylesheets</code>：不使用抓取页面的css<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">keep_only_tags</code>：#内容页抓取时保留项目，这里这句表示只保留class为col-md-8的元素。<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/>另有<a href=\\\"http://manual.calibre-ebook.com/news_recipe.html#calibre.web.feeds.news.BasicNewsRecipe.remove_tags\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">remove_tags</code></a>、<a href=\\\"http://manual.calibre-ebook.com/news_recipe.html#calibre.web.feeds.news.BasicNewsRecipe.remove_tags_after\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">remove_tags_after</code></a>、<a href=\\\"http://manual.calibre-ebook.com/news_recipe.html#calibre.web.feeds.news.BasicNewsRecipe.remove_tags_before\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">remove_tags_before</code></a>等方法，见名得意。</p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">如果你还想实现更复杂的功能，可以<a href=\\\"http://manual.calibre-ebook.com/news_recipe.html\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">查阅官方API文档</a></p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">另外，经过我的实践，下面这些也是很有用的一些整体属性：</p>\\\n<div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:1em 2%;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;font-size:100%;background:rgb(29, 31, 33);\\\"><table style=\\\"font-size:100%;font-weight:inherit;font-style:inherit;font-variant:inherit;-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-family:inherit;vertical-align:middle;border-collapse:collapse;border-spacing:0px;width:auto;\\\"><tbody style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><tr style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(102, 102, 102);line-height:1.5;background:rgb(29, 31, 33);text-align:right;padding-right:1.5em;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">1</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">2</div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">3</div></pre></td><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;background:rgb(29, 31, 33);\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">max_articles_per_feed  = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">100</span></span></span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">simultaneous_downloads = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">5</span></span></span></div><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">remove_javascript      = <span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(181, 189, 104);\\\"><span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(178, 148, 187);\\\">True</span></span></span></div></pre></td></tr></tbody></table></div>\\\n\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">max_articles_per_feed</code>：最大文章数，默认为100。之前下载一本Android开发指南，292项，一直都是下到1/3打包，原因就在这里。所以下载大内容时需要注意修改此项数值。   </p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">simultaneous_downloads</code>：多线程下载数，默认为5，如果你需要更快的话，修改它。   </p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">remove_javascript</code>：从下载好的HTML中去除javascript，对于javascript较多的页面效果不错。   </p>\\\n<h3 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:140%;vertical-align:baseline;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">parse_index</h3>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">整个recipe的核心。必须的部件。<br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/>关于这部分，我上面的代码是有注释的，另外@张洋的解释很棒，可参考<a href=\\\"http://blog.codinglabs.org/articles/convert-html-to-kindle-book.html\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">抓取网页内容生成Kindle电子书</a>，我就不费口水了。</p>\\\n<h2 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:180%;vertical-align:baseline;line-height:1.2em;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">生成mobi</h2>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">在recipe所在的目录，运行命令行</p>\\\n<div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:1em 2%;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;font-size:100%;background:rgb(29, 31, 33);\\\"><table style=\\\"font-size:100%;font-weight:inherit;font-style:inherit;font-variant:inherit;-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-family:inherit;vertical-align:middle;border-collapse:collapse;border-spacing:0px;width:auto;\\\"><tbody style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><tr style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\"><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(102, 102, 102);line-height:1.5;background:rgb(29, 31, 33);text-align:right;padding-right:1.5em;\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">1</div></pre></td><td style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:normal;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;text-align:left;\\\"><pre style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:none;outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:100%;vertical-align:baseline;overflow:auto;color:rgb(197, 200, 198);line-height:1.5;background:rgb(29, 31, 33);\\\"><div style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;\\\">ebook-<span style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;color:rgb(222, 147, 95);\\\">convert</span> Pro_Git_Chinese.recipe Pro_Git_Chinese.mobi</div></pre></td></tr></tbody></table></div>\\\n\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">如果你生成的mobi是52kb，用calibre打开里面没有内容的话，是<code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">keep_only_tags</code>与<code style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px 2px;padding:0px 5px;border:1px solid rgb(214, 214, 214);outline:0px;font-weight:inherit;font-style:inherit;font-family:Monaco, Menlo, Consolas, 'Courier New', monospace;font-size:90%;vertical-align:baseline;color:rgb(116, 112, 112);white-space:nowrap;text-shadow:rgb(255, 255, 255) 0px 1px;background:rgb(238, 238, 238);\\\">div = soup.find('ul', { 'class': 'toc' })</code>的问题，仔细用F12去审查元素看看是哪里弄错了吧。O(∩_∩)O</p>\\\n<h2 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:180%;vertical-align:baseline;line-height:1.2em;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">实际效果图</h2>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\"><img src=\\\":/695cdd491aa44aa48120c6eb56f4c5b1\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图1\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/392d4c28b2a64901bafea304c4338bae\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图2\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/e44063cb94f7449e8f8b71975bb355da\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图3\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/0762f1a2b6a8456294754785243f7505\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图4\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/671554c2bf0d45dc9b4365579b9bf012\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图5\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/98171202ca7840f28f32c81787d36893\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图6\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/><br style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;\\\"/><img src=\\\":/4203d328935140de9515d5938249784c\\\" type=\\\"image/png\\\" data-filename=\\\"Image.png\\\" alt=\\\"效果图7\\\" height=\\\"1024\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:auto;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:middle;max-width:100%;display:block;height:auto;padding-top:0.7em;\\\" width=\\\"758\\\"/>   </p>\\\n<h2 style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0.5em 0px;padding:0.3em 0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:180%;vertical-align:baseline;line-height:1.2em;color:rgb(51, 51, 51);-webkit-font-smoothing:antialiased;\\\">recipe仓库</h2>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">我在github上的recipe仓库<a href=\\\"https://github.com/Abirdcfly/kindle-calibre-recipe\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">点这里</a>欢迎大家贡献recipe。 </p>\\\n<p style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:1.2em 0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:105%;vertical-align:baseline;line-height:1.7;\\\">我的wiki有关kindle<a href=\\\"https://github.com/Abirdcfly/abirdcfly.github.com/wiki/Kindle\\\" rel=\\\"external\\\" style=\\\"-webkit-margin-before:0px;-webkit-margin-after:0px;margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;font-size:100%;vertical-align:baseline;text-decoration:none;color:rgb(44, 166, 203);\\\" target=\\\"_blank\\\">点这里</a>。</p>\\\n  \\\n\\t</div></div></div></div></div></div></div><br/></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":68081}]"
metadata_diff: {"new":{"id":"92d12e2840c34509a74519c667d9d688","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348837733,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:09.538Z
created_time: 2025-11-28T21:04:09.538Z
type_: 13