同步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分钟一次
哇,大赞啊!膜拜!仰慕!
[Reply]
@Victor.Hu,
我重新配置了邮件, 你能收到回复通知吗?
[Reply]
新浪似乎最近两天改了登录的认证方法,无法正常认证了。
[Reply]
@drivel, 嗯, 找到问题了. 登录是没问题的, 发微博的接口被禁止了. 修复好了告诉你.
[Reply]
i want to sync my twitter status with weibo but i dont’ understand your site? can you help me?
[Reply]
@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]
@marvin, hi marvin, I don’t know whether you have a Linux/Unix server/vps, but this program does need one.
[Reply]
@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]
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]
@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]
@marvin chow, sorry. it’s http://api.t.sina.com.cn/oauth/authorize?oauth_token=d5b4c622f3f3086ca76b48d3667374ca
[Reply]
611637 – thanks again
[Reply]
@marvin, done. now you can update a twitter status to see whether it works
[Reply]
技术白求助。。那个同步是上传到主机空间里以后就能用了?
[Reply]
@jiersl, 我添加了使用说明.
服务器需要安装python和pycurl
[Reply]
@lyxint,
嗯,知道了,谢了~
[Reply]
wet半岁了, 35个watcher, 7个fork, 撒花
不过web版还没开始写, 要加油
[Reply]