Formatted-RSS-to-Telegram/data/rss.yaml

59 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2021-05-27 10:31:26 +00:00
template:
WebSubTemplate: &WebSubTemplate
text: |
2021-07-02 05:04:49 +00:00
*{{ title }}*
2021-05-27 10:31:26 +00:00
2021-07-02 05:04:49 +00:00
[传送门]({{ link }})
2021-05-27 10:31:26 +00:00
2021-07-02 05:04:49 +00:00
\#{{ rss_name }}
2021-05-27 10:31:26 +00:00
2021-05-26 09:32:39 +00:00
rss:
2021-07-02 05:04:49 +00:00
- name: Xtao的bilibili收藏视频
url: http://127.0.0.1:1981/bilibili/fav/35363258/211469558
2021-05-26 09:32:39 +00:00
telegram:
2021-07-02 05:04:49 +00:00
disable_web_page_preview: false
2021-05-26 09:32:39 +00:00
rules:
- obj: summary
type: func
matcher: |
def func(placeholder):
2021-07-02 05:04:49 +00:00
import re
dr = re.findall(r'<img src="(.*?)" />', placeholder)
return dr[0]
dest: image_url
- obj: summary
2021-05-26 09:32:39 +00:00
type: func
matcher: |
def func(placeholder):
2021-07-02 05:04:49 +00:00
import re
dr = re.compile(r'<[^>]+>',re.S)
return dr.sub('', placeholder)
dest: description
2021-05-26 09:32:39 +00:00
text: |
2021-07-02 05:04:49 +00:00
#Xtao的bilibili收藏视频
<a href="{{ image_url }}">🎥</a><b>{{ title }}</b>
2021-05-26 09:32:39 +00:00
2021-07-02 05:04:49 +00:00
{{ description }}
2021-05-26 09:32:39 +00:00
2021-07-02 05:04:49 +00:00
<a href="{{ link }}">传送门</a>
2021-05-27 12:40:18 +00:00
2021-07-02 05:04:49 +00:00
- name: Github
2021-05-27 12:40:18 +00:00
url:
- https://github.com/fluid-dev/hexo-theme-fluid/releases.atom
telegram:
disable_web_page_preview: true
rules:
- obj: content.0.base
type: regex
matcher: https:\/\/github.com\/(.+?)\/(.+?)\/.+
dest: repo
filters:
- obj: title
matcher: Last updated \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}
text: |
2021-07-02 05:04:49 +00:00
🌈 项目更新:<b>{{ repo[1] }}/{{ repo[2] }}</b>
2021-05-27 10:31:26 +00:00
2021-07-02 05:04:49 +00:00
✈️ 更新内容:<a href="{{ link }}">{{ title }}</a>
2021-05-27 10:31:26 +00:00
2021-07-02 05:34:50 +00:00
#Github #{{ repo[2] }}