V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
supersu
V2EX  ›  Python

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

  •  
  •   supersu ·
    supersu097 · 2017-09-17 18:30:41 +08:00 · 1968 次点击
    这是一个创建于 2418 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    Repo is Here.

    12 条回复    2017-09-19 23:40:15 +08:00
    tigerstudent
        1
    tigerstudent  
       2017-09-17 18:46:27 +08:00 via Android
    用 ifttt 的话可以用 rss 订阅回复通知。
    supersu
        2
    supersu  
    OP
       2017-09-17 18:54:04 +08:00 via Android
    @tigerstudent 是个好办法,可是 v2 的通知 feed 不是 rss 协议,之前找了个安卓软件,支持 atom 协议但是最小时间间隔是半小时,关键是 app 一到后台就不能通知了,各种自启动和权限都给过了还不行~
    tSQghkfhTtQt9mtd
        3
    tSQghkfhTtQt9mtd  
       2017-09-18 01:33:44 +08:00 via Android
    @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
        4
    supersu  
    OP
       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
        5
    supersu  
    OP
       2017-09-18 10:22:11 +08:00
    @liwanglin12 I've created an applet, wait to see the news to me~
    tSQghkfhTtQt9mtd
        6
    tSQghkfhTtQt9mtd  
       2017-09-18 19:26:48 +08:00 via Android
    @supersu 🤔我只是把 IFTTT 上关于 RSS 的描述复制过来了,我不是英文用户啊(
    askfermi
        7
    askfermi  
       2017-09-19 15:43:00 +08:00
    考不考虑接入一下微信服务号,就可以在微信里通知了。 [手动滑稽]

    https://www.v2ex.com/t/391152#reply5
    supersu
        8
    supersu  
    OP
       2017-09-19 16:56:30 +08:00
    @liwanglin12 哦哦(●ˇ∀ˇ●)
    supersu
        9
    supersu  
    OP
       2017-09-19 16:57:17 +08:00
    @askfermi 是你建的这个助理君么~
    askfermi
        10
    askfermi  
       2017-09-19 17:27:11 +08:00
    @supersu 嗯嗯
    supersu
        11
    supersu  
    OP
       2017-09-19 18:01:54 +08:00 via Android
    @askfermi 这会正在改代码,不打算解析内容了,只保留通知也可以么
    askfermi
        12
    askfermi  
       2017-09-19 23:40:15 +08:00
    @supersu 可以是可以 不过有点麻烦 我想想
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1806 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:23 · PVG 08:23 · LAX 17:23 · JFK 20:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.