Movement: Follow me on RSS

16 views
Skip to first unread message

Pili Hu

unread,
Jul 1, 2013, 9:07:47 AM7/1/13
to sns...@googlegroups.com
During the preparation of todays minor release, 
I drafted the RSoc community page:


Please see it for more details. 

SNSApi at the heart encourages flexible hacking usages.
One example is to follow each other on RSS. 
You can rely on different current infrastructures for feed distribution. 

This is my public feed:


For those who do not use SNSApi, it can gracefully degrade.
Just use ordinary RSS reader to subscribe the feeds.
All my Renren, SinaWeibo,  TecentWeibo and Twitter status updates will automatically go to the above feed.


Pili Hu

unread,
Jul 1, 2013, 9:11:10 AM7/1/13
to sns...@googlegroups.com
We may use some PubSub techs as underlying feed distribution mechanism later. For now, I think it is too early to do this optimization. Just spread the words first and try to build an ad-hoc DSN based on RSS channel of SNSApi in this way. Everyone can use his own way to automate the distribution process.

In SNSApi, this is fairly simple:

   * Configure some channels
   * Read `home_timeline` from some channels
   * `update` on the `RSS2RW` channel. 

I have this cron job running on a server. 

I think it's also easy to wrap this piece of logic on an App Engine. 

Lin Huiwen

unread,
Jul 1, 2013, 11:43:10 PM7/1/13
to sns...@googlegroups.com
有些不太明白。

是不是将不同的社交网路集合起来看?

那个AD-HOC 是要建立在什么基础上?


2013/7/1 Pili Hu <hupili...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "snsapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snsapi+un...@googlegroups.com.
To post to this group, send email to sns...@googlegroups.com.
Visit this group at http://groups.google.com/group/snsapi.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pili Hu

unread,
Jul 2, 2013, 12:30:47 AM7/2/13
to sns...@googlegroups.com
ad-hoc的意思就是大家可以用不同的方式来发布自己的feeds,只要相互连起来就可以了。

社交网络,其实背后也就是一堆feeds,只不过集中管理了。你follow一个人就是subscribe了他的feeds。他更新状态,就是往他的feeds里面加了了新的item。你每次登录社交网的主页刷新timeline,就是去一个个feeds检查新的消息。当然,这个只是概念模型。集中式服务在后面有多种优化。现在可以用RSS直接实现这个模型,大家相互follow别人的RSS,写也往RSS里面写,其实就是一个DSN的原型了。

之所以ad hoc,是因为每个人可能有不同的解决方案,几个例子:

   * 可以直接用 snsgui,添加一个RSS2RW,在上面发status。如何把写好的feeds发布到一个朋友可读的url需要再考虑,有多种自动化的方法。
   * 我平时活动在不同社交网,就在服务器上跑了个类似forwarder的应用,把其他平台的转到这个RSS2RW平台上。就是前面贴的我的atom的地址。转发前可以干的事情很多,比如中英分开,过滤一些信息等等。

生成的这个feeds,可以用SNSApi来读,也可以用普通RSS reader来读。用SNSApi的好处是后续可以扩展。目前只利用了RSS的标准域,用他们来承载类似SNS上“status”这样的信息。正是因为这些标准域,所以普通RSS reader也可以读。后续SNSApi可以添加自己的meta info,这样用SNSApi读出来的就是结构化的信息,便于后续处理。

follow on RSS的一大好处就是避免封号……只要我的发布点还在就可以了。

Lin Huiwen

unread,
Jul 2, 2013, 12:45:49 AM7/2/13
to sns...@googlegroups.com
配合上这个例子:http://personal.ie.cuhk.edu.hk/~hpl011/rss/snsapi.atom

大致明白了~

这样可以实现社交网路的共通...

我忽然又有个想法:比如像我这样的人,每天要打开好多次不同的社交网站,人人/weibo/V2EX/Github,要是能聚合这些信息,确实有很大的便利。



Pili Hu

unread,
Jul 2, 2013, 2:38:36 AM7/2/13
to sns...@googlegroups.com
刚换了下链接, 


不过原来那个还在。

data fragmentation是现在的一大问题。各种服务太多了,用户要到处跑去用。维护多份帐号这些麻烦都不说了。因为没有统一格式,很难备份和自动转发,一封号就只有干瞪眼。

在SNSAPI之上,有统一的格式,实现聚合逻辑就比较轻松了。我自己有个SNSRouter一直在跑,拉人人、微博、还有几个RSS。上面那个生成聚合rss的逻辑其实就是放在那个SNSRouter下面,加了个hook,有新消息就执行它,往这个聚合rss  update() 就可以了。





2013/7/2 Lin Huiwen <xuanqi...@gmail.com>

Pili Hu

unread,
Jul 2, 2013, 2:49:37 AM7/2/13
to sns...@googlegroups.com
把这个google-group也加进去了。


只聚合了从我发出来的消息。


2013/7/2 Pili Hu <hupili...@gmail.com>

Lin Huiwen

unread,
Jul 2, 2013, 11:54:46 PM7/2/13
to sns...@googlegroups.com
用户一多会服务器和router程序会不会出问题呢?

另外,我手头有些资料 不知到对你有用没:

人人有专门的feed接口 http://wiki.dev.renren.com/wiki/Feed.get

微博有第三方开源feed项目:https://github.com/zhu327/weibo2rss


Pili Hu

unread,
Jul 3, 2013, 12:25:41 AM7/3/13
to sns...@googlegroups.com
人人的那个feed.get接口就是目前 RenrenStatus.home_timeline 后面所调用的。

weibo2rss这个太专一了。其实可以在snsapi之上封装一个服务,支持的平台之间转入转出都可以。

SNSRouter的性能倒不是太担心。目前为止一般不做专门优化,除非到我忍受不了的时候。现在主要面向的也是程序员类的用户,把代码拿下来自己部署,在服务器和pc上跑都可以。前两天觉得执行太慢,给sqlite加了索引,又回到人可接受的范围。


面向终端用户的话,SNSRouter并不合适,里面支持的东西过多了,需要裁剪。不过问题是,一旦裁剪成只是简单配置就做转发(转发到其他OSN或者RSS),就成了IFTTT了。我之前在SNSRouter的techreport里面也说过这个,可以利用现成服务。snsapi主要是给了一种可以scripting的能力,随便写点逻辑,就能形成IFTTT或者Yahoo Pipes不能支持的转发规则。决定好输出之后,可以直接update到RSS channel,之后就可以大面积利用IFTTT的服务了,比如把我homepage下的那个RSS直接转发到我手机上。





2013/7/3 Lin Huiwen <xuanqi...@gmail.com>
Reply all
Reply to author
Forward
0 new messages