我把 Z-Library 装进了自己的阅读器E-book library Z-Library now available on my e-reader


AI free token/AI免费积分

本文来源:https://mp.weixin.qq.com/s/Z5LJ9DTcjxj50fY88p1zzw
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

1018-0
图片由 AI 生成

前几天我写了一篇公众号,聊读书和刷短视频,到底哪一个更高级。

读书真的比刷视频高级吗?

发出去之后看的人挺多,也有不少人跑来跟我讨论。聊着聊着我发现,关于读书这件事,大家其实都还有不少话想说。

那今天就顺着这个话题,说说我现在到底是怎么读书的。

读书这件事,我折腾了挺久,最后在一个现成的开源阅读器上,加了几个小工具,让它能自己找书,还能随机抽一本给我看。

最近我的一个小项目 Z-Readest 跑通了第一次测试,我 fork 了 Readest 的源码,加了两个主要功能:内嵌 Z-Library,下载下来的书自动进书架;还有一个随机一本书的按钮,不知道看什么的时候点一下就行。

做完的那一刻我其实挺平静的,因为这事拖得有点久,真到能用了,反而只剩下一种“哦,可以了”的踏实。

回头想,这件事的起点要早得多,早到我还是个只读纸质书的学生。

大学刚开学那会儿,我的阅读是从纸书开始的。买书,借书,泡图书馆,一本书拿在手里翻,划线,写批注。那时候觉得,读书就该是这样,实打实地攥在手里。

后来电子书慢慢流行起来,我开始用微信读书。

现在回想起来,微信读书有两样东西让我记忆犹新。

一个是书友圈。我记得当时在找一本书,它没上架,而且到处都搜不到资源,正发愁的时候,一个书友直接给我发来了这本书。那种感觉挺奇妙的,屏幕对面的陌生人,就因为都在读、都在找,顺手拉了我一把。

另一个是段评想法。同一段文字下面,你能看到别人读到这儿时留下的想法,短的像弹幕,长的像一篇小书评。读书本来是件挺私人的事,可那些想法让书页边上多了点人气,好像有人陪你一起读。

但后来学业忙起来,我的阅读变得断断续续,渐渐地,微信读书也就搁下了。

再捡起来的时候,我已经不满足于现成的平台了,转向了开源阅读器,用的是 Readest,配 Z-Library,也就是目前世界上最大的电子书图书馆。流程是去 Z-Library 把书下下来,再手动导入 Readest。Readest 支持 EPUB、PDF 这些常见格式,用起来很顺手。

其实我之前自己也试着开发过一个阅读器,做到一半发现 Readest 已经把我想要的东西做得挺好了,就停了手。

说到底,纸质书、微信读书、开源的 Readest,都只是载体。我绕了这一圈才慢慢想明白,工具本身不分高低,顺手、能让人沉下心读书的,就是好的。

可手动导入这个动作,做多了就开始烦。下载、导入、整理书架,每读一本新书都要走一遍。我就想,能不能把 Z-Library 直接嵌进阅读器里,点开网页,下载,书自动进书架,省掉中间那一步。

1018-1
Readest 内置 Z-Library 访问
1018-3
下载书籍
1018-4
自动加入书架

这个念头不算大,但它一直没散。刚好 Readest 是开源的,我就 fork 了一份,在现成的地基上面动手。改动主要是两处,一处是内嵌 Z-Library,一处是随机一本书。

随机一本书的想法,其实比内嵌书库来得更早。我经常想看书又不知道看什么,最早是看微信读书榜单,然后豆瓣榜单,再后面就让 AI 给我随机推荐。

听起来挺方便,可用着用着就发现问题了,每次都要去问一句,问完它给的书也未必合胃口,一来一回,看书的那点冲动早就凉了。

于是我想,能不能直接调一些接口,把书同步到一个库里,想读的时候随机抽一本,抽到就读,读完标记一下,下次不重复。就这样,它和内嵌 Z-Library 一起做了进去。

不过随机推荐用的书籍信息来自 OpenLibrary,访问还不太稳定,这块我还在继续优化。

除此之外,我还加了个阅读时长统计的小功能:

1018-2
阅读时长统计

现在 Z-Readest 已经上线了,严格说,它只是 Readest 的一个小分支,做的事也不大,主要就是把找书、下书、选书这几步,从人要手动去操作,变成在同一个阅读器里顺手完成,另外再加上我需要的两个工具。

https://github.com/LeeDaud/Readest.git

接下来我还想再往前走一步。

Readest 里做的那些划线、批注,现在都困在软件里,导不出来,也没法沉淀。我想把 Readest 和我的 Obsidian 仓库连起来,就像 Echo 那样,让读书笔记自动同步进去,按书分文件夹,引用原文就用 Obsidian 的引用格式。

在一个念头过期之前,我把它做成了回响

毕竟,这些散落在书页边上的念头,不也是一种回响吗。

大概一个人读书的方式,是跟着生活一起变的,从纸质书到微信读书,再到开源的 Readest,现在又自己去开发需要的功能。

我不知道它的下一个形态会是什么,但眼下这个自己攒出来的小东西,至少让读书这件事变得顺手了一点。

读书笔记自动进入知识库这件事,我留到下一篇再细说。

你呢,现在,怎么读书?

Source: https://mp.weixin.qq.com/s/Z5LJ9DTcjxj50fY88p1zzw If there are copyright issues, please contact: 13951431913#139.com or leave a comment on the right.

A few days ago I wrote a post on WeChat discussing which is more sophisticated: reading books or scrolling through short videos.

Is reading really more sophisticated than watching videos?

After I posted it, quite a few people read it and came to discuss it with me. As we chatted, I realized many people still have a lot to say about reading.

So today, following up on this topic, let me talk about how I currently read books.

I've been fiddling with book reading for a long time. Eventually, I took a ready-made open-source reader and added a few small tools so it could find books on its own and randomly pick one for me to read.

Recently, my small project Z-Readest completed its first test. I forked the Readest source code and added two main features: an embedded Z-Library so downloaded books go directly into the bookshelf, and a random book button you can tap when you don't know what to read.

When I finished, I was actually quite calm. The project had been dragging on for a while, and now that it actually works, all that's left is a simple sense of "oh, it's done."

Looking back, the starting point of this journey goes much further back—to when I was a student who only read paper books.

When I first started college, my reading began with physical books: buying books, borrowing books, spending time in the library, flipping through pages by hand, highlighting, and writing annotations. Back then I thought reading should be like that—something solid and tangible you could hold in your hands.

Later, e-books gradually became popular, and I started using WeChat Read.

Looking back now, there are two things about WeChat Read that I remember vividly.

One was the book lovers' circle. I remember searching for a particular book that wasn't listed, and I couldn't find the resource anywhere. Just as I was worried, another user sent it directly to me. It was a strange feeling—a stranger on the other side of the screen, simply because we were both reading and searching, gave me a hand.

The other was the paragraph comments. Under the same passage, you could see thoughts others left at that moment—short ones like bullet comments, long ones like mini book reviews. Reading is usually a private thing, but those comments brought a sense of warmth to the margins of the pages, as if someone were reading with you.

But later, as my studies got busier, my reading became intermittent, and gradually I put WeChat Read aside.

When I picked it up again, I was no longer satisfied with ready-made platforms and turned to an open-source reader: Readest, paired with Z-Library, currently the world's largest e-book library. The workflow was to download books from Z-Library and manually import them into Readest. Readest supports common formats like EPUB and PDF and is very smooth to use.

Actually, I had previously tried building my own reader, but halfway through I found Readest already did everything I wanted, so I stopped.

At the end of the day, paper books, WeChat Read, and the open-source Readest are all just carriers. I went in a full circle before slowly realizing that tools themselves are neither higher nor lower; the good ones are simply those that are handy and help you settle down to read.

But manually importing became annoying over time—download, import, organize the shelf, and repeat every time I got a new book. I wondered whether I could embed Z-Library directly into the reader, so you could click the page, download, and have the book automatically added to the shelf, skipping that intermediate step.

This wasn't a grand idea, but it never left my mind. Since Readest is open source, I forked it and built on top of the existing foundation. The changes were mainly in two areas: embedding Z-Library and adding a random book feature.

The idea for a random book actually came earlier than embedding the library. I often wanted to read but didn't know what to pick. First I checked the WeChat Read rankings, then Douban's lists, and later I asked AI to randomly recommend one for me.

It sounded convenient, but as I used it I found problems. Each time I had to ask first, and the book it suggested wasn't always to my taste. By the time the back-and-forth was over, the initial urge to read had already faded.

So I thought, what if I could call some APIs to sync books into a library and randomly pick one whenever I want to read? Read it, mark it as done, and it won't come up again next time. That way it was combined with the embedded Z-Library.

However, the book information used for random recommendations comes from OpenLibrary, whose API access is not very stable. I'm still working on optimizing this part.

In addition, I also added a small reading time tracking feature:

Z-Readest is now live. Strictly speaking, it's just a small branch of Readest, and it doesn't do much—it mainly turns the processes of finding, downloading, and selecting books from something you do manually into something you can do smoothly within the same reader, plus the two extra tools I needed.

Next, I want to take one more step forward.

The highlights and annotations I make in Readest are currently trapped inside the app—they can't be exported or preserved. I want to connect Readest with my Obsidian vault, similar to Echo, so reading notes sync automatically into it, organized by book folders, with quotes using Obsidian's citation format.

Before an idea expires, I turned it into an echo.

After all, those scattered thoughts in the margins of the pages—are they not also a kind of echo?

I guess how a person reads tends to evolve along with their life—from physical books to WeChat Reading, then to the open-source Readest, and now to building the features I need myself.

I don't know what its next form will be, but this little tool I pieced together at least makes reading a bit more convenient right now.

I'll save the discussion about automatically adding reading notes to the knowledge base for the next post.

What about you—how are you reading these days?

1018-0

1018-1

1018-3

1018-4

1018-2

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry