Giter VIP home page Giter VIP logo

Comments (14)

jasongwq avatar jasongwq commented on July 28, 2024 2

如果考虑利用第三方的话可以考虑类似Huginn之类的软件,Huginn 通过一个Webhook Agent接收Event,并通过Data Output Agent发布为RSS。可使用的agents如下:https://huginnio.herokuapp.com/agents

from liuli.

jasongwq avatar jasongwq commented on July 28, 2024 1

是的,2c项目能力是实现将内容分类,但是如果是推送的方式,对于用户来说要不遗漏消息,要不被动接收不关心的信息,如果是查询的方式就给了用户更多的选择权,可以选择什么时候看什么信息,发挥内容分类最大的优势

from liuli.

123seven avatar 123seven commented on July 28, 2024 1

TG接入方案

1. 接入TG需要的配置说明文档

  • CHAT_ID(相当于用户ID)
  • TOKEN(调用机器人发送消息的Token)
  • 👉需要补充CHAT_ID和TOKEN获取的文档

2. 增加对应配置

环境变量
  • CC_TG_CHAT_ID=(用户自己的CHAT_ID)
  • CC_TG_TOKEN=(用户自己的TOKEN)
配置类
  • TG_CHAT_ID=(环境变量CC_TG_CHAT_ID)
  • TG_TOKEN=(环境变量CC_TG_TOKEN)

3. 接入Telegram Bot APi

API说明: https://core.telegram.org/bots/api#sendmessage

解析消息文本采用HTML方式,模板示例👇️

<a href="{doc_link}"><b>👉👉{doc_name}</b></a>

<pre>👉检测为: {doc_cus_des}</pre>

<pre>来源: {doc_source}</pre>
<pre>作者: {doc_source_name}</pre>
<pre>更新时间: {doc_date}</pre>

<pre>文章关键字: {doc_keywords}</pre>

<a href="https://github.com/howie6879/2c"><b>👉技术支持[2c]❤</b></a>

消息示例👇️

cc @howie6879

from liuli.

blue-troy avatar blue-troy commented on July 28, 2024 1

http://127.0.0.1:8765/rss/liuli_wechat/老胡的储物柜/

再次感谢,我给这个补充个文档吧

from liuli.

jasongwq avatar jasongwq commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

这提议有意思的地方在于接收方可以变成主动方来订阅2c,换个思路想就是自构建一个终端模块(或者选第三方),然后这个模块可以将接收的文章生成为rss,供任何人订阅。

2c还是发往某个终端,只不过这个终端的作用是将接收的内容生成为rss给任何人,可以考虑。

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

当前已实现了rss输出的功能 @jasongwq

image

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024

@123seven 看起来没问题,tg这块自定义还是挺强的,底部加一段反馈地址吧:

识别错误?点击[广告反馈](https://github.com/howie6879/2c/issues/4)

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024
  • 需要补充CHAT_ID和TOKEN获取的文档

文档麻烦补充到这里 分发器配置

from liuli.

blue-troy avatar blue-troy commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

当前已实现了rss输出的功能 @jasongwq

image

那么rss输出是默认的还是需要配置呢?

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

当前已实现了rss输出的功能 @jasongwq
image

那么rss输出是默认的还是需要配置呢?

参考 配置 https://github.com/liuli-io/liuli/blob/main/liuli_config/wechat.json

processor 下面配置了 rss 输出

from liuli.

blue-troy avatar blue-troy commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

当前已实现了rss输出的功能 @jasongwq
image

那么rss输出是默认的还是需要配置呢?

参考 配置 https://github.com/liuli-io/liuli/blob/main/liuli_config/wechat.json

processor 下面配置了 rss 输出

感谢🙏

from liuli.

blue-troy avatar blue-troy commented on July 28, 2024

可以考虑在分发器侧提供RSS,那就实现了RSS进,RSS出,RSS阅读器的生态足够庞大,可以考虑利用下

当前已实现了rss输出的功能 @jasongwq
image

那么rss输出是默认的还是需要配置呢?

参考 配置 https://github.com/liuli-io/liuli/blob/main/liuli_config/wechat.json

processor 下面配置了 rss 输出

我看到了日志:liuli_wechat: 老胡的储物柜 的 1 篇文章生成RSS成功 说明生成RSS成功了,那么RSS的地址是什么呢?我尝试了ip:port/rss ip:port/liuli_wechat 都为404 notfound

from liuli.

howie6879 avatar howie6879 commented on July 28, 2024

http://127.0.0.1:8765/rss/liuli_wechat/老胡的储物柜/

from liuli.

Related Issues (20)

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.