torabot icon indicating copy to clipboard operation
torabot copied to clipboard

Gist mod

Open Answeror opened this issue 11 years ago • 4 comments

User can subscribe a gist uri. This gist may contain some sandboxed code or just xpath rules in JSON. Gist mod will download this gist and generate Atom feed according to the rules defined in the gist. The following logic will be same with feed mod.

This mod can be used to subscribe pages with private information, such as Cookies, using private gist. Or user can share useful public gist to others.

For example, one can use a private gist to subscribe his/her bangumi notifications, private pixiv followings, etc.

The popular gists will become new mod candidates.

Answeror avatar Jun 18 '14 06:06 Answeror

This functionality may not be implemented in a separate mod, but rather a Blueprint or a standalone site. This site is used to convert a web page (may be a set of pages) into desired format (like RSS/Atom feed), according to the JSON config and XSLT contained in the specified gist.

Answeror avatar Jun 19 '14 08:06 Answeror

实现了一个样例, bgm.tv 私信订阅: https://gist.github.com/Answeror/34fd6a535090ca85a2fc


Implemented private mail subscription of bgm.tv : https://gist.github.com/Answeror/34fd6a535090ca85a2fc

Answeror avatar Jun 28 '14 20:06 Answeror

Bangumi评论订阅: https://gist.github.com/Answeror/f4b337c06bf746969244

Answeror avatar Jun 30 '14 07:06 Answeror

Eventually, we may separate source making and change detection logic and replace all the spy parts of all the mods with the combination of torabot.mods.onereq and torabot.core.make.

Answeror avatar Jun 30 '14 07:06 Answeror