Git Product home page Git Product logo

rss2epub's Introduction

Build Status

将RSS内容转为epub格式电子书的工具

使用方法

  • rss2epub使用maven构建,请先安装maven。

  • 在rss2pub目录下运行

    mvn package

    完成项目的编译,此时编译好的rss2epub会放在target目录下,而相关依赖会被自动拷贝到target/lib下

  • 工具的使用方法为

    java -cp 依赖jar包 org.codinglabs.rss2epub.RssToEpub 配置文件 输出文件

    例如在rss2epub目录下执行

    Linux&Mac:

    java -cp target/lib/*:target/rss2epub-0.0.1-SNAPSHOT.jar org.codinglabs.rss2epub.RssToEpub book.yml book.epub

    Windows:

    java -cp target/lib/*;target/rss2epub-0.0.1-SNAPSHOT.jar org.codinglabs.rss2epub.RssToEpub book.yml book.epub

    会在当前目录生成一本名叫book.epub的电子书。

配置文件

rss2epub的配置文件使用YAML格式。配置文件结构如下

title: 电子书标题
author: 电子书作者
image: 是否抓取图片
feeds:
    - Feed源URL
    - Feed源URL
    ...
    - Feed源URL

具体可以参考项目根目录下的book.yml。

功能特点

  • 轻量级,易于使用。
  • 自动处理图片。
  • 自动生成索引。
  • 纯命令行工具,不依赖其它电子书管理工具,方便与其它脚本配合使用。

依赖项目

  • Log4j - 日志库
  • SnakeYAML - 用于解析YAML文件
  • Rome - 用于读取和解析RSS源
  • Epublib - 用于生成epub格式电子书

Maven会自动处理这些依赖,因此你在编译和运行程序时不需显式关心依赖项目。 此处列出仅表示对这些项目的感谢。

rss2epub's People

Contributors

dependabot[bot] avatar ericzhang-cn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.