同步twitter到新浪微博,人人,etc…

2011-04-22 10:55

以前也用过Follow5什么的, 可是觉着不爽. 老担心隐私呀, 东西放在别人那里我就觉得不放心. 所以自己写了一个同步. 目前只能单向同步twitter到sina和renren. 可以同步twitter到豆瓣, facebook, 人人, 新浪微博, 腾讯微博, 饭否, 42区等等.

目前sina用的是他提供的api, 但是觉着不爽. 有空了换成和renren一样的做法.
[update 2011-04-28]已经换成了模拟post, 代码精简了, 配置更方便了. 呼呼.
[update 2011-05-04]加入了对douban和facebook的支持
[update 2011-05-28]新浪微博废弃掉了t.sina.com.cn和t.sina.cn, 所以暂时改为走weibo.com的openapi
[update 2011-07-23]添加使用说明
[update 2011-10-03]更新

源码托管在 https://github.com/lyxint/wet

使用说明:
使用方法

1.编辑conf.py, 填入twitter帐号和feeds地址
2.编辑conf.py, 填入要同步到的帐号和密码
3.同步到腾讯微博 > – sh qq/download_qqweibo.sh > – 去open.t.qq.com申请一个应用, 编辑qq/conf.py, 填入consumer_key和consumer_secret > – python qq/get_oauthed.py使自己的qq微博帐号和应用绑定
4.同步到新浪微博 > – sh sina/download_sinatpy.sh > – 去open.weibo.com申请一个应用, 编辑sina/conf.py填入consumer_key和consumer_secret > – python sina/get_oauthed.py使自己的weibo帐号和应用绑定
5.把main.py加入crontab, 间隔自己拿捏, 我设置的是每5分钟一次

17 Comments on “同步twitter到新浪微博,人人,etc…”

  1. 1 Victor.Hu said at 16:32 on 2011-04-22:

    哇,大赞啊!膜拜!仰慕!

    [Reply]

    lyxint replied at 09:07 on 2011-04-25:

    @Victor.Hu,
    我重新配置了邮件, 你能收到回复通知吗?

    [Reply]

  2. 2 drivel said at 16:06 on 2011-05-26:

    新浪似乎最近两天改了登录的认证方法,无法正常认证了。

    [Reply]

    lyxint replied at 18:23 on 2011-05-26:

    @drivel, 嗯, 找到问题了. 登录是没问题的, 发微博的接口被禁止了. 修复好了告诉你.

    [Reply]

  3. 3 marvin said at 01:04 on 2011-05-28:

    i want to sync my twitter status with weibo but i dont’ understand your site? can you help me?

    [Reply]

    lyxint replied at 17:38 on 2011-05-28:

    @marvin, currently syncing to weibo doesn’t work, because sina discards t.sina.com.cn and t.sina.cn. I will use weibo openapi instead.

    [Reply]

    lyxint replied at 19:38 on 2011-05-28:

    @marvin, hi marvin, I don’t know whether you have a Linux/Unix server/vps, but this program does need one.

    [Reply]

    lyxint replied at 23:21 on 2011-05-28:

    @marvin, If you have no vps, I can deploy the program for you. Now syncing to weibo uses openapi, no worry about anyone knowing your password.

    [Reply]

  4. 4 marvin chow said at 23:25 on 2011-05-28:

    lixint – that would be awesome! i would really appreciate it as i’ve been trying to do it for a while and have been combing through chinese code without a clue.

    my twitter = @theREALmarvin
    wiebo = http://weibo.com/therealmarvin

    do you need anything else?
    thank you thank you!

    _mc

    [Reply]

    lyxint replied at 23:37 on 2011-05-28:

    @marvin chow, you need to open http://api.t.sina.com.cn/oauth/authorize?oauth_token=d6f840fadccf24246f86a76aecba1032 in browser, and tell me the number.

    [Reply]

  5. 5 marvin said at 23:45 on 2011-05-28:

    611637 – thanks again

    [Reply]

    lyxint replied at 23:50 on 2011-05-28:

    @marvin, done. now you can update a twitter status to see whether it works

    [Reply]

  6. 6 jiersl said at 11:43 on 2011-07-23:

    技术白求助。。那个同步是上传到主机空间里以后就能用了?

    [Reply]

    lyxint replied at 22:00 on 2011-07-23:

    @jiersl, 我添加了使用说明.

    服务器需要安装python和pycurl

    [Reply]

    jiersl replied at 07:49 on 2011-07-24:

    @lyxint,
    嗯,知道了,谢了~

    [Reply]

  7. 7 lyxint said at 17:55 on 2011-12-15:

    wet半岁了, 35个watcher, 7个fork, 撒花
    不过web版还没开始写, 要加油

    [Reply]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>