← 返回
未分类

免费小说TXT下载器

Search and download free novel TXT files from public sources.
搜索并下载免费小说 TXT 文件,支持中文/英文小说,自动检测编码
追风少年
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 86
下载
💾 0
安装
1
版本
#latest

概述

novel-txt-finder

Search and download free novel TXT files from public sources. Works for Chinese and English novels.

Workflow

Step 1: Identify the novel

Ask the user for the novel name. If they only give a partial name, search to find the exact title.

Step 2: Search for download sources

Use web_search to find free TXT download sources:

query: "小说名 txt 下载 免费"

Filter results: prefer .txt file links or sites known for free novel downloads. Avoid paid or DRM-protected sources.

Step 3: Evaluate candidate URLs

For each candidate URL, use web_fetch with maxChars: 2000 to check:

  • Is it a direct TXT file?
  • Is it a directory listing with .txt files?
  • Is it a search results page that might have TXT links?

Step 4: Download the TXT file

When a direct .txt URL is found:

curl -L -o "/tmp/{novel-name}.txt" "URL"

Use the novel name (sanitized) as filename. Save to /tmp/ first.

Step 5: Verify the file

file "/tmp/{novel-name}.txt"
wc -c "/tmp/{novel-name}.txt"
head -5 "/tmp/{novel-name}.txt"

Validate:

  • File size > 10KB (meaningful content)
  • Contains Chinese text or novel content (not HTML error page)
  • Correct encoding (try iconv -f GBK -t UTF-8 if garbled)

Step 6: Fix encoding if needed

Chinese novels often come in GBK/GB2312 encoding:

iconv -f GBK -t UTF-8 "/tmp/{novel-name}.txt" -o "/tmp/{novel-name}-utf8.txt" 2>/dev/null && mv "/tmp/{novel-name}-utf8.txt" "/tmp/{novel-name}.txt"

Step 7: Save to target location

Ask user where to save, or default to ~/Downloads/{novel-name}.txt.

Step 8: Report

✅ 下载完成!

书名:《》
作者:未知
文件:/Users/mac/Downloads/.txt
大小:X MB
来源:URL

Search strategies by source type

Direct TXT sites

Known free novel sites:

  • wocaibook.com
  • quedian.org
  • booktxt.net
  • ia找人看书 txt org (ia.org)

GitHub raw TXT

Many Chinese novels are archived on GitHub:

query: "site:github.com "小说名" txt"

Look for raw content at raw.githubusercontent.com

Wenku8 (文库8)

For Chinese web novels:

query: "小说名 site:wenkub.com OR site:wenku8.net"

Fallback: Google/Baidu search

query: ""小说名" 下载 txt"

Edge cases

  • No results found: Try alternative titles, author names, or partial names.
  • Multiple volumes: Download the most complete volume first, report other volumes.
  • Blocked site: Try with browser tool or report failure.
  • Suspicious redirect: Always verify final URL with web_fetch.
  • Very small file (<10KB): Likely an error page or redirect, try another source.
  • HTML instead of TXT: Try lynx -dump URL or search for a cleaner source.

Safety rules

  • Only download from publicly available free sources.
  • Do not use paid ebook platforms (Kindle, Douban books, etc.).
  • Do not bypass paywalls or DRM.
  • Do not redistribute downloaded files beyond personal use.

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-05-22 10:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,905
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,592
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,518