Skip to content

欢迎来到电子书下载宝库,一个汇聚了各类电子书下载链接的地方。无论你是喜欢阅读经典文学、经管励志、终身学习、职场创业、技术手册还是其他类型的书籍,这里都能满足你的需求。 该库涵盖了帆书app(原樊登读书)、微信读书、京东读书、喜马拉雅等读书app的大部分电子书。

Python

feat: 使用真实数据生成页面

jbiaojerryf4f8061ffac2
diff --git a/docs/index.html b/docs/index.html
index 5ca99a8..674594f 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -211,15 +211,15 @@
<div class="overview-stats">
<div class="stat-item">
<span>📘 总书籍数</span>
-<strong id="total-books">4</strong>
+<strong id="total-books">24,071</strong>
</div>
<div class="stat-item">
<span>📂 分类数量</span>
-<strong id="total-categories">2</strong>
+<strong id="total-categories">1000</strong>
</div>
<div class="stat-item">
<span>🌍 支持语言</span>
-<strong>EN / ZH</strong>
+<strong>ZH</strong>
</div>
<div class="stat-item">
<span>📥 支持格式</span>
@@ -256,44 +256,527 @@
<hr>
-<h2>📂 Mathematics</h2>
+<p>*注:共 1000 个分类,以下显示前 20 个分类的书籍。使用搜索功能可查找所有书籍。*</p>
-<h3>🌍 Language: EN</h3>
-<h4>⭐ Level: Beginner</h4>
+<h2>📂 20世纪</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>霍布斯鲍姆自传</strong> — 艾瑞克·霍布斯鲍姆</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357006945-240989?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 5G</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>5G金融</strong> — 莫开伟/陈名银/邱泉</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1356988384-74644e?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>5G时代:经济增长新引擎</strong> — 孙松林</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357049167-7cc0f4?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>5G时代:生活方式和商业模式的大变革</strong> — 龟井卓也</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357048354-3ac912?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>5G时代</strong> — 项立刚</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357033045-916943?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 731</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>恶魔的饱食:日本731细菌战部队揭秘</strong> — 森村诚一</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005949-f03dbf?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 AI</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>智慧未来</strong> — 李开复</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1375513735-fe1296?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>错觉:AI如何通过数据挖掘误导我们</strong> — 加里・史密斯</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357000357-8a60cf?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>智能语音时代</strong> — 詹姆斯・弗拉霍斯</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1356982510-7f3725?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>深度学习:智能时代的核心驱动力量</strong> — 特伦斯・谢诺夫斯基</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357029667-77e164?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>人类帝国的覆灭</strong> — 常博逸</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357029106-bc38be?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>AI迷航2</strong> — 肖遥</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357023982-655d95?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>AI:人工智能的本质与未来</strong> — 玛格丽特・博登</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357011793-7233e8?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 CSS</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>CSS重构:样式表性能调优</strong> — Steve Lindstrom</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357017682-29904e?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>CSS禅意花园(修订版)</strong> — Dave Shea/Mollv E</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357014547-fc72e6?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>精通CSS(第2版)</strong> — Andy Budd/Cameron Moll</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357008904-4f5343?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>CSS设计指南(第3版)</strong> — Charles Wyke-Smith</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005769-ddcb31?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 Excel</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>对比Excel,轻松学习Python数据分析</strong> — 张俊红</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357033042-7b00f3?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>为什么精英都是Excel控</strong> — 熊野整</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357015744-ec5cf7?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>别怕,Excel VBA其实很简单</strong> — 罗国发</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005424-36e2bc?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 FBI</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>读心神探:FBI心理侧写术</strong> — 约翰・道格拉斯/马克・奥尔谢克</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357016635-5c67ae?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 Java</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>Netty实战</strong> — 诺曼・毛瑞尔</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357048471-3b0351?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Spring Boot实战</strong> — Craig Walls</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021069-b1405c?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Java程序员修炼之道</strong> — Benjamin J. Evans/Martijn Verburg</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021057-91cde2?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Java 8实战</strong> — Raoul-Gabriel Urma等</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021054-fef42d?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Spring实战(第4版)</strong> — Craig Walls</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357020319-e008d6?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 Linux</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>鸟哥的Linux私房菜:基础学习篇(第三版)</strong> — 鸟哥</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357022668-37c4df?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>鸟哥的Linux私房菜:服务器架设篇(第三版)</strong> — 鸟哥</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357022671-598d7f?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Linux就该这么学</strong> — 刘遄</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357020865-7cfd40?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Linux环境编程:从应用到内核</strong> — 高峰</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357019278-91aa23?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 MBA</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>用得上的商学课</strong> — 路骋</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357053604-bca457?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>30天精读MBA(套装共3册)</strong> — 科林・巴罗</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357045696-20ac29?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>MBA十日读(第四版)</strong> — 史蒂文・西尔比格</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021045-26cf5b?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 MYSQL</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>PHP和MySQL Web开发(原书第4版)</strong> — Luke Welling</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005859-aace71?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 OKR</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
<ul>
-<li><strong>Linear Algebra Done Right</strong> — Sheldon Axler</li>
+<li><strong>绩效使能:超越OKR</strong> — 况阳</li>
</ul>
-<p> 格式:PDF | <a href="https://example.com/linear-algebra">下载链接</a></p>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357031344-240881?p=8866">下载链接</a></p>
<ul>
-<li><strong>test</strong> — Sheldon Axler</li>
+<li><strong>OKR:源于英特尔和谷歌的目标管理利器</strong> — 保罗・尼文/本・拉莫尔特</li>
</ul>
-<p> 格式:PDF | <a href="https://example.com/linear-algebra">下载链接</a></p>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357016284-d23741?p=8866">下载链接</a></p>
+
-<h2>📂 Programming</h2>
+<h2>📂 PHP</h2>
-<h3>🌍 Language: EN</h3>
+<h3>🌍 Language: ZH</h3>
-<h4>⭐ Level: Intermediate</h4>
+<h4>⭐ Level: Unknown</h4>
<ul>
-<li><strong>Clean Code</strong> — Robert C. Martin</li>
+<li><strong>PHP和MySQL Web开发(原书第4版)</strong> — Luke Welling</li>
</ul>
-<p> 格式:PDF, EPUB | <a href="https://example.com/clean-code">下载链接</a></p>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005859-aace71?p=8866">下载链接</a></p>
+
+
+<h2>📂 Python</h2>
<h3>🌍 Language: ZH</h3>
-<h4>⭐ Level: Advanced</h4>
+<h4>⭐ Level: Unknown</h4>
+
+<p>*(共 28 本,显示前 10 本)*</p>
+
+<ul>
+<li><strong>Python高性能编程</strong> — 戈雷利克/欧日沃尔德</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357049494-9a6e10?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Python金融大数据分析</strong> — 伊夫・希尔皮斯科</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357049215-c492ab?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>零基础入门学习Python</strong> — 小甲鱼</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357048366-64d455?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>零起点Python大数据与量化交易</strong> — 何海群</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357047622-173359?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>深度学习入门:基于Python的理论与实现</strong> — 斋藤康毅</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357034164-652cd3?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>对比Excel,轻松学习Python数据分析</strong> — 张俊红</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357033042-7b00f3?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>精通Python爬虫框架Scrapy</strong> — 迪米特里奥斯 考奇斯-劳卡斯</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357026256-a24bfa?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>用Python写网络爬虫(第2版)</strong> — Katharine Jarmul</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357023493-43dbb4?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>从Python开始学编程</strong> — Vamei</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021285-a8babf?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>机器学习实战</strong> — Peter Harrington</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021075-0d6e7c?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 Spring</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>Spring Boot实战</strong> — Craig Walls</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357021069-b1405c?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Spring实战(第4版)</strong> — Craig Walls</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357020319-e008d6?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 WEB</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>Web安全之深度学习实战</strong> — 刘焱</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357027117-20aa4a?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Flask Web开发</strong> — Miguel Grinberg</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357018324-e7bedb?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>CSS禅意花园(修订版)</strong> — Dave Shea/Mollv E</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357014547-fc72e6?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>精通CSS(第2版)</strong> — Andy Budd/Cameron Moll</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357008904-4f5343?p=8866">下载链接</a></p>
<ul>
-<li><strong>Go 语言设计与实现</strong> — 郝林</li>
+<li><strong>HTML5秘籍</strong> — Matthew MacDonald</li>
</ul>
-<p> 格式:PDF | <a href="https://example.com/go-design">下载链接</a></p>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357006540-4fb712?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>CSS设计指南(第3版)</strong> — Charles Wyke-Smith</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005769-ddcb31?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 WEB开发</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>JavaScript函数式编程</strong> — Michael Fogus</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357048030-9c7b24?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>Node即学即用</strong> — Tom Hughes-Croucher/Mike Wilson</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357019341-c051bb?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>PHP和MySQL Web开发(原书第4版)</strong> — Luke Welling</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357005859-aace71?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 iOS</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>iOS编程(第4版)</strong> — Christian Keur/Aaron Hillegass</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357011823-73a7cc?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 tableau</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<ul>
+<li><strong>人人都是数据分析师</strong> — 刘红阁/王淑娟/温融冰</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357023040-6ede2b?p=8866">下载链接</a></p>
+
+
+
+<h2>📂 一战</h2>
+
+<h3>🌍 Language: ZH</h3>
+
+<h4>⭐ Level: Unknown</h4>
+
+<p>*(共 12 本,显示前 10 本)*</p>
+
+<ul>
+<li><strong>第一次世界大战:繁荣的幻灭</strong> — 诺曼・斯通</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1356995860-028486?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>第一次世界大战(贝克知识丛书)</strong> — 弗尔克・贝克汉恩</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357051600-703fba?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>彗星年代</strong> — 丹尼尔・舍恩普夫卢格</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357047445-ebb29b?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>大英帝国与第一次世界大战</strong> — 戴维・雷诺兹</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357039822-4fe1a8?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>骄傲之塔</strong> — 巴巴拉・W・塔奇曼</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357037515-63cf76?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>哈布斯堡的灭亡</strong> — 杰弗里・瓦夫罗</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357032763-6ef5f4?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>八月炮火</strong> — 巴巴拉・塔奇曼</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357022260-f72b1c?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>1913,一战前的世界</strong> — 查尔斯・埃默森</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357019293-a852b8?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>崩塌的世界</strong> — 梅尔</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357013923-111e75?p=8866">下载链接</a></p>
+
+<ul>
+<li><strong>奥斯曼帝国的衰亡</strong> — 尤金・罗根</li>
+</ul>
+<p> 格式:epub, mobi, azw3 | <a href="https://url89.ctfile.com/f/31084289-1357009525-0dfc4f?p=8866">下载链接</a></p>
+
+
+
+
+<hr>
+<p>*还有 980 个分类未显示,请使用搜索功能查找。*</p>
</header>
@@ -306,13 +789,17 @@
</footer>
<script>
-// 更新统计信息
+// 更新统计信息(从 parse-stats.json)
(function() {
const stats = {"total_files": 1000, "success_files": 1000, "error_files": 0, "total_books": 24071, "categories_count": 1000, "top_categories": {"文学": 2711, "历史": 1748, "科普": 743, "管理": 613, "社会": 558, "推理": 531, "经典": 494, "经济": 487, "哲学": 431, "传记": 413, "美国": 399, "心理": 396, "悬疑": 393, "商业": 387, "励志": 373, "金融": 370, "随笔": 368, "投资": 365, "思维": 353, "文化": 344}, "error_file_list": []};
const totalBooksEl = document.getElementById('total-books');
const totalCatsEl = document.getElementById('total-categories');
- if (totalBooksEl) totalBooksEl.textContent = stats.total_books.toLocaleString() + ' 本';
- if (totalCatsEl) totalCatsEl.textContent = stats.categories_count.toLocaleString() + ' 个';
+ if (totalBooksEl && stats.total_books) {
+ totalBooksEl.textContent = stats.total_books.toLocaleString() + ' 本';
+ }
+ if (totalCatsEl && stats.categories_count) {
+ totalCatsEl.textContent = stats.categories_count.toLocaleString() + ' 个';
+ }
})();
</script>
</body>
diff --git a/scripts/generate_index.py b/scripts/generate_index.py
index 52f670f..5d72922 100644
--- a/scripts/generate_index.py
+++ b/scripts/generate_index.py
@@ -7,14 +7,45 @@ from pathlib import Path
# 路径定义
ROOT = Path(__file__).parent.parent
BOOKS_FILE = ROOT / "metadata" / "books.yaml"
+ALL_BOOKS_FILE = ROOT / "docs" / "all-books.json"
+STATS_FILE = ROOT / "docs" / "parse-stats.json"
OUTPUT_HTML = ROOT / "docs" / "index.html"
OUTPUT_JSON = ROOT / "docs" / "books.json"
def load_books():
- with open(BOOKS_FILE, "r", encoding="utf-8") as f:
- data = yaml.safe_load(f)
- return data.get("books", [])
+ """优先从 all-books.json 加载真实数据,如果不存在则从 metadata/books.yaml 加载"""
+ # 优先加载 all-books.json(包含所有 md 文件的数据)
+ if ALL_BOOKS_FILE.exists():
+ try:
+ with open(ALL_BOOKS_FILE, "r", encoding="utf-8") as f:
+ books = json.load(f)
+ print(f"✅ 从 all-books.json 加载了 {len(books)} 本书籍")
+ return books
+ except Exception as e:
+ print(f"⚠️ 加载 all-books.json 失败: {e},降级到 metadata/books.yaml")
+
+ # 降级到 metadata/books.yaml
+ if BOOKS_FILE.exists():
+ with open(BOOKS_FILE, "r", encoding="utf-8") as f:
+ data = yaml.safe_load(f)
+ books = data.get("books", [])
+ print(f"ℹ️ 从 metadata/books.yaml 加载了 {len(books)} 本书籍(示例数据)")
+ return books
+
+ print("⚠️ 未找到书籍数据文件")
+ return []
+
+
+def load_stats():
+ """加载统计信息"""
+ if STATS_FILE.exists():
+ try:
+ with open(STATS_FILE, "r", encoding="utf-8") as f:
+ return json.load(f)
+ except Exception as e:
+ print(f"⚠️ 加载统计信息失败: {e}")
+ return None
def group_books(books):
@@ -35,21 +66,28 @@ def group_books(books):
return grouped, categories, languages, levels
-def render_overview(books, categories, languages, levels):
+def render_overview(total_books, total_categories, languages, levels):
+ # 格式化数字
+ books_display = f"{total_books:,}" if total_books > 1000 else str(total_books)
+ cats_display = f"{total_categories:,}" if total_categories > 1000 else str(total_categories)
+
+ # 语言显示
+ lang_display = " / ".join(sorted(languages)) if languages else "中文 / 英文"
+
return f"""## 📊 统计概览
<div class="overview-stats">
<div class="stat-item">
<span>📘 总书籍数</span>
-<strong id="total-books">{len(books)}</strong>
+<strong id="total-books">{books_display}</strong>
</div>
<div class="stat-item">
<span>📂 分类数量</span>
-<strong id="total-categories">{len(categories)}</strong>
+<strong id="total-categories">{cats_display}</strong>
</div>
<div class="stat-item">
<span>🌍 支持语言</span>
-<strong>{' / '.join(sorted(languages))}</strong>
+<strong>{lang_display}</strong>
</div>
<div class="stat-item">
<span>📥 支持格式</span>
@@ -88,8 +126,17 @@ def render_search_ui():
def render_content(grouped):
lines = []
+
+ # 限制显示的分类数量(避免页面过长)
+ # 如果分类太多,只显示前20个热门分类
+ sorted_categories = sorted(grouped.keys())
+ max_categories = 20
+
+ if len(sorted_categories) > max_categories:
+ lines.append(f"*注:共 {len(sorted_categories)} 个分类,以下显示前 {max_categories} 个分类的书籍。使用搜索功能可查找所有书籍。*\n\n")
+ sorted_categories = sorted_categories[:max_categories]
- for category in sorted(grouped.keys()):
+ for category in sorted_categories:
lines.append(f"## 📂 {category}\n")
for language in sorted(grouped[category].keys()):
@@ -98,15 +145,27 @@ def render_content(grouped):
for level in sorted(grouped[category][language].keys()):
lines.append(f"#### ⭐ Level: {level}\n")
- for b in grouped[category][language][level]:
+ books_list = grouped[category][language][level]
+ # 每个分类-语言-级别组合最多显示10本书
+ max_books_per_section = 10
+ if len(books_list) > max_books_per_section:
+ books_list = books_list[:max_books_per_section]
+ lines.append(f"*(共 {len(grouped[category][language][level])} 本,显示前 {max_books_per_section} 本)*\n")
+
+ for b in books_list:
formats = ", ".join(b.get("formats", []))
lines.append(
- f"- **{b['title']}** — {b.get('author', '')} \n"
+ f"- **{b['title']}** — {b.get('author', '未知')} \n"
f" 格式:{formats} | "
f"[下载链接]({b['link']})\n"
)
lines.append("")
+
+ lines.append("")
+
+ if len(sorted_categories) < len(grouped.keys()):
+ lines.append(f"\n---\n\n*还有 {len(grouped.keys()) - len(sorted_categories)} 个分类未显示,请使用搜索功能查找。*\n")
return "\n".join(lines)
@@ -254,27 +313,30 @@ def generate_html(md_content):
"""生成完整的 HTML 页面"""
html_body = markdown_to_html(md_content)
- # 尝试加载统计信息
+ # 尝试加载统计信息并生成更新脚本
stats_info = ""
try:
stats_file = ROOT / "docs" / "parse-stats.json"
if stats_file.exists():
- import json
with open(stats_file, 'r', encoding='utf-8') as f:
stats = json.load(f)
stats_info = f"""
<script>
-// 更新统计信息
+// 更新统计信息(从 parse-stats.json)
(function() {{
const stats = {json.dumps(stats, ensure_ascii=False)};
const totalBooksEl = document.getElementById('total-books');
const totalCatsEl = document.getElementById('total-categories');
- if (totalBooksEl) totalBooksEl.textContent = stats.total_books.toLocaleString() + ' 本';
- if (totalCatsEl) totalCatsEl.textContent = stats.categories_count.toLocaleString() + ' 个';
+ if (totalBooksEl && stats.total_books) {{
+ totalBooksEl.textContent = stats.total_books.toLocaleString() + ' 本';
+ }}
+ if (totalCatsEl && stats.categories_count) {{
+ totalCatsEl.textContent = stats.categories_count.toLocaleString() + ' 个';
+ }}
}})();
</script>"""
- except:
- pass
+ except Exception as e:
+ print(f"⚠️ 生成统计信息脚本失败: {e}")
html_template = """<!DOCTYPE html>
<html lang="zh-CN">
@@ -497,12 +559,28 @@ def generate_html(md_content):
def main():
books = load_books()
+ stats = load_stats()
+
+ # 如果有统计信息,使用统计信息中的数据
+ if stats:
+ total_books = stats.get("total_books", len(books))
+ total_categories = stats.get("categories_count", len(set(b.get("category", "") for b in books)))
+ else:
+ total_books = len(books)
+ total_categories = len(set(b.get("category", "") for b in books))
+
grouped, categories, languages, levels = group_books(books)
+
+ # 使用统计信息中的分类数量(如果可用)
+ if stats and "categories_count" in stats:
+ categories_count = stats["categories_count"]
+ else:
+ categories_count = len(categories)
md_parts = []
md_parts.append("# 📚 Ebook Treasure Chest\n")
md_parts.append("> 自动生成,请勿手动修改\n\n---\n")
- md_parts.append(render_overview(books, categories, languages, levels))
+ md_parts.append(render_overview(total_books, categories_count, languages, levels))
md_parts.append("\n---\n")
md_parts.append(render_search_ui())
md_parts.append("\n---\n")