Giter Club home page Giter Club logo

t-rss's Introduction

t-rss

t-rss是一个自动rss bt种子文件的程序,相比flexget丰富的功能,t-rss功能较为精简,同时体积更小、占用资源更少,支持自动将rss得到的种子文件添加至bt客户端(目前支持qBittorrent和Deluge(未完整测试过)),将来会加入从irc获取资源信息的功能(irc已经不想写了。)

从v0.6.x开始配置文件格式有所改变,与之前不再兼容,且v0.6.x的稳定性还未经历时间检验,建议一般用户使用v0.5.4beta版本,并且查看老版本的README来编写配置文件

https://github.com/capric98/t-rss/blob/d8b0c0be0acf251b7e24c183039dc61b39cce80c/README-zh_CN.md

安装

首先下载最新的pre-release or release中系统/架构对应的压缩包

解压后得到一个二进制文件,如果没有x属性自己加一下

写好配置文件直接运行就完了,命令行参数见-help,此处略

配置

带*的部分是可省略不配置的,但receiver部分需要至少配置一个不然程序跑完rss啥也不会干

config.yml(格式修改中)
GLOBAL:
  log_file: # delete this to output log to stderr
  history:
    max_num: 300 # max history record nums
    save_to: # default: ./.t-rss_History
  timeout: 1m # {int}s/m/h/d

TASKS:
  Name_of_task0:
    rss:
      url: https://example.com
      method: GET #*delete this except you know what this means
      headers:    #*if needed
        Cookie: something
        Key: Value
      interval: 10s # {int}s/m/h/d
    filter:
      content_size:
        min: 10MB340KB
        max: 120G10MB
      regexp:
        accept:
          - A
        reject:
          - B
    quota:
      num: 65535
      size: 100G
    edit:
      tracker:
        delete:
          - share
        add:
          - http(s)://example.com/
    receiver:
      delay: 12s
      save_path: /home/WatchDir/
      client:
        Name_of_client0:
          type: qBittorrent
          url: http://127.0.0.1
          username: admin
          password: adminadmin
          dlLimit:
          upLimit:
          paused: true
          savepath: /home/Downloads
        Name_of_client1:
          type: Deluge
          host: 127.0.0.1:1234
          username:
          password:

  Name_of_task1:
    rss:
      url: https://example.com
    receiver:
      save_path: /home/WatchDir/
  Name_of_task2:
    rss:
      url: https://example.com
    receiver:
      save_path: /home/WatchDir/

运行

在RSS目录下运行二进制文件即可,默认使用同目录下的config.yml作为配置文件,历史保留在同目录下的.t-rss_History目录内;也可以nohup或者注册成服务什么的。。

TODO

  • 重写client部分
  • 重写/重新设计bencode部分
  • 增加test覆盖率

go-yaml

go-rencode

logrus

go-colorable

t-rss's People

Contributors

capric98 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

Watchers

 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.