迫于 v2EX+的通知不太兼容 mi5,新的 V2er 不支持通知,写了个 py 小脚本手动解析了一下通知配合 cron 麻麻再也不怕我回复 v2er 太晚了

2017-09-17 18:30:41 +08:00
 supersu

很感谢 v2EX+的作者与我在邮件中互动,可能是比较忙,再加上安卓的碎片化,不兼容很正常,本来以为要编译 lxml 才能解析 v2 的 atom feed,没想到 html5lib 就行,毕竟渣渣 256 的 vps 能简单还是简单点~

Repo is Here.

1977 次点击
所在节点    Python
12 条回复
tigerstudent
2017-09-17 18:46:27 +08:00
用 ifttt 的话可以用 rss 订阅回复通知。
supersu
2017-09-17 18:54:04 +08:00
@tigerstudent 是个好办法,可是 v2 的通知 feed 不是 rss 协议,之前找了个安卓软件,支持 atom 协议但是最小时间间隔是半小时,关键是 app 一到后台就不能通知了,各种自启动和权限都给过了还不行~
tSQghkfhTtQt9mtd
2017-09-18 01:33:44 +08:00
@supersu The RSS Feed service lets you turn on and make Applets for RSS and ***Atom*** web feeds. When the content you care about goes live, stay up-to-date with notifications, emails, and more.
supersu
2017-09-18 10:01:32 +08:00
@liwanglin12 Thank u for telling me that, later I'll try using it, but I got a little weird issue that the notification dashboard doesn't notify me about ur last reply, is it because the system has banned me~
supersu
2017-09-18 10:22:11 +08:00
@liwanglin12 I've created an applet, wait to see the news to me~
tSQghkfhTtQt9mtd
2017-09-18 19:26:48 +08:00
@supersu 🤔我只是把 IFTTT 上关于 RSS 的描述复制过来了,我不是英文用户啊(
askfermi
2017-09-19 15:43:00 +08:00
考不考虑接入一下微信服务号,就可以在微信里通知了。 [手动滑稽]

https://www.v2ex.com/t/391152#reply5
supersu
2017-09-19 16:56:30 +08:00
@liwanglin12 哦哦(●ˇ∀ˇ●)
supersu
2017-09-19 16:57:17 +08:00
@askfermi 是你建的这个助理君么~
askfermi
2017-09-19 17:27:11 +08:00
@supersu 嗯嗯
supersu
2017-09-19 18:01:54 +08:00
@askfermi 这会正在改代码,不打算解析内容了,只保留通知也可以么
askfermi
2017-09-19 23:40:15 +08:00
@supersu 可以是可以 不过有点麻烦 我想想

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/391423

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX