Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-chenxing/dev-chenxing.github.io
:books: 罗列书柜 | A set of Ruby scripts for downloading books from www.gushiwen.cn, and generating EPUBs.
https://github.com/dev-chenxing/dev-chenxing.github.io
books epub gushiwen mupdf ruby shell web-scraping
Last synced: 1 day ago
JSON representation
:books: 罗列书柜 | A set of Ruby scripts for downloading books from www.gushiwen.cn, and generating EPUBs.
- Host: GitHub
- URL: https://github.com/dev-chenxing/dev-chenxing.github.io
- Owner: dev-chenxing
- Created: 2024-04-18T11:06:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-17T14:12:16.000Z (6 months ago)
- Last Synced: 2024-05-18T13:52:23.309Z (6 months ago)
- Topics: books, epub, gushiwen, mupdf, ruby, shell, web-scraping
- Language: Ruby
- Homepage: https://dev-chenxing.github.io/
- Size: 181 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📚 [罗列书柜](https://dev-chenxing.github.io)
> 我书架上有的是书,你可随意取一本去
>
> ——「醒世恒言·卷三十八」### 吾家藏书五十余卷
| | | | |
|---|---|---|---|
|[三侠五义](books/epub/三侠五义.epub)|[两晋演义](books/epub/两晋演义.epub)|[何典](books/epub/何典.epub)|[儒林外史](books/epub/儒林外史.epub)|
|[儿女英雄传](books/epub/儿女英雄传.epub)|[八仙得道传](books/epub/八仙得道传.epub)|[刘公案](books/epub/刘公案.epub)|[前汉演义](books/epub/前汉演义.epub)|
|[北史演义](books/epub/北史演义.epub)|[十二楼](books/epub/十二楼.epub)|[南北史演义](books/epub/南北史演义.epub)|[南史演义](books/epub/南史演义.epub)|
|[后汉演义](books/epub/后汉演义.epub)|[呼家将](books/epub/呼家将.epub)|[女仙外史](books/epub/女仙外史.epub)|[好逑传](books/epub/好逑传.epub)|
|[孽海花](books/epub/孽海花.epub)|[官场现形记](books/epub/官场现形记.epub)|[小五义](books/epub/小五义.epub)|[小八义](books/epub/小八义.epub)|
|[常言道](books/epub/常言道.epub)|[幻中游](books/epub/幻中游.epub)|[新齐谐](books/epub/新齐谐.epub)|[施公案](books/epub/施公案.epub)|
|[春秋配](books/epub/春秋配.epub)|[李公案](books/epub/李公案.epub)|[林公案](books/epub/林公案.epub)|[济公全传](books/epub/济公全传.epub)|
|[海上花列传](books/epub/海上花列传.epub)|[海国春秋](books/epub/海国春秋.epub)|[狄公案](books/epub/狄公案.epub)|[白牡丹](books/epub/白牡丹.epub)|
|[红楼梦](books/epub/红楼梦.epub)|[绣云阁](books/epub/绣云阁.epub)|[绿野仙踪](books/epub/绿野仙踪.epub)|[老残游记](books/epub/老残游记.epub)|
|[老残游记续集](books/epub/老残游记续集.epub)|[聊斋志异](books/epub/聊斋志异.epub)|[花月痕](books/epub/花月痕.epub)|[荡寇志](books/epub/荡寇志.epub)|
|[薛丁山征西](books/epub/薛丁山征西.epub)|[薛仁贵征东](books/epub/薛仁贵征东.epub)|[薛刚反唐](books/epub/薛刚反唐.epub)|[说唐演义全传](books/epub/说唐演义全传.epub)|
|[说岳全传](books/epub/说岳全传.epub)|[镜花缘](books/epub/镜花缘.epub)|[阅微草堂笔记](books/epub/阅微草堂笔记.epub)|[隋唐演义](books/epub/隋唐演义.epub)|
|[雍正剑侠图](books/epub/雍正剑侠图.epub)|[雷峰塔奇传](books/epub/雷峰塔奇传.epub)|[鬼神传](books/epub/鬼神传.epub)|## How to use
A set of scripts for downloading books from https://www.gushiwen.cn, and generating EPUBs.
You need the following dependencies:
- [Ruby](https://rubyinstaller.org/)
- Run `bundle install` to install gem dependencies
- Bash, or [Git Bash](https://git-scm.com/downloads)
- [ImageMagick](https://imagemagick.org/script/download.php)(Optional) `print_to_pdf.sh` script requires [MuPDF](https://mupdf.com/releases/index.html)
### To scrape books
- Add your list of books to scrape to `booklist.csv`
- in the format of `url,title,author`
- for example, `https://so.gushiwen.cn/guwen/book_46653FD803893E4FECEF70A63E964959.aspx,女仙外史,吕熊`
- `url` is the table of contents page of the book
- **`author` must not be empty**. If the author is unknown, use `佚名`
- **`booklist.csv` must ends with empty last line**
- Run `sh scrape.sh`
- The books scraped will be stored in `books`## 关于我
陈刑,生卒年不详,南海(今广东广州)人。因屡试不第,常流连网络撰写代码。