Home > 电脑技术 > Twitter 同步到新浪微博,人人,豆瓣,Follow5

Twitter 同步到新浪微博,人人,豆瓣,Follow5

本文用到月光所写的程序,可以搭建在支持Python的空间上,如果你没有,就放到GAE上去.即便GAE被墙也没关系.

这个程序本身支持同步到6个微博,不支持人人网,但可以先同步到F5,再由F5同步到人人.

可以过滤掉以 @ 和 RT 开头的推.个人觉得经常RT式聊天以及发很多敏感词的朋友不要用.

登陆你的GAE帐号,新建一个项目,名字(id)自定,呆会要用到.

下载程序:

svn checkout http://twitter-feed.googlecode.com/svn/trunk/ twitter-feed-read-only

或者直接点这里下载.(这里可能不是最新版本)

修改程序.

一共要修改2处.app.yaml和twitter.py.

将app.yaml文件里 Application 后边的 twitter-feed 换成你自己建的 id.

将下图中2个红色部分的username和密码改成你自己的.如果想同步到其他地方,要把前边的#号去掉.

twitter2others-py

上传

这个我就不写了,网上教程很多.

第一次同步要等几分钟,并且可能会造成被同步微博刷屏.

PS:也不知道说清楚了没有,还不会的话就留言或者发邮件或者在twitter上问我吧.

Categories: 电脑技术 Tags:
  1. January 22nd, 2010 at 20:53 | #1

    没有人人…( ̄. ̄)..
    起码给人家一个链接啊…

    [Reply]

    truant Reply:

    @littleben, 啊?什么链接?

    [Reply]

    littleben Reply:

    @truant,
    怎么上传这些东西的教程啊…

    [Reply]

    truant Reply:

    @littleben, 小笨,你说话越来越不清楚了…jiong! 你别告诉我你还传不上去?在win下要安的软件比较多,Linux下下载一个就行啦.python都是自带的.

    [Reply]

    littleben Reply:

    @truant,
    这个…我成功了…
    我是说,如果一个从来没接触过gae的人就看不懂你这教程…

    [Reply]

    truant Reply:

    @littleben, 好吧,你总算说清楚了…
    介绍GAE的话就要再写文章,要不跑题啦..
    以后你写吧,哈哈!

  2. January 22nd, 2010 at 23:29 | #2

    我就算了
    微博用得少,偶尔推
    其他基本不用

    [Reply]

  3. kehao
    January 23rd, 2010 at 04:26 | #3

    truanty我已经上传成功了。。为什么没有用。。帮我看看这个是不是正确的,,http://zhenkehao.appspot.com

    [Reply]

    truant Reply:

    @kehao, 这个页面显示的是index.html的内容,不能代表什么.主要是改twitter.py这个文件,把2个username一个改成你twitter的ID,一个改成你要同步到的网站的ID(还有密码)

    [Reply]

  4. kehao
    January 23rd, 2010 at 04:28 | #4

    Twitter-Feed : Takes twitter RSS feed, strips the “username: “, removes @replies

    I have an RSS feed of a Twitter page on my website but I don’t want the username of that Twitter’s profile to be mentioned at the start of every message.

    Currently the format is, “username: Twitter message”, I want that simply changed to “Twitter message”.

    The code for the RSS is below, it would be greatly appreciated if anyone can think up some code that would eliminate the name from the messages.

    [Reply]

  5. January 26th, 2010 at 04:36 | #5

    http://twitter-feed.googlecode.com/svn/trunk/ twitter-feed-read-only
    链接貌似多一个空格

    [Reply]

  6. January 26th, 2010 at 04:38 | #6

    怎么提示链接不存在呢?还不太会svn

    [Reply]

    truant Reply:

    @shuil, 直接点下载的吧,在Dropbox上的,比较稳定.今天月光已经更新了这个程序,你可以去他博客看一下.增加了功能.

    [Reply]

    shuil Reply:

    @truant, 成功鸟 谢谢

    [Reply]

  7. convoi
    February 3rd, 2010 at 22:57 | #7

    修改twitter.py可选择过滤模式:

    在快结尾处找到 if text.find(‘@’,1) == -1 : 一行,该行默认是过滤回推和回复
    如果都不过滤 可修改成 if 1 :
    如果只过滤回复而非回推(我定义为:@ 和 RT @共存时,@在前则为回复) 可修改成 if text.find(“RT @”,1) <= text.find('@',1) :

    最后还是要感谢Willianlong带来的这个同步好东西。

    [Reply]

  8. ziegfeld
    February 6th, 2010 at 10:18 | #8

    能同步到豆瓣么?我是搜索进来的,发现还是月光那个。

    说过滤的蛮有用,谢谢楼上

    [Reply]

  9. March 6th, 2010 at 00:38 | #9

    算鸟,怕死循环

    [Reply]

  1. No trackbacks yet.