sunner / buzz2weibo Goto Github PK
View Code? Open in Web Editor NEW将Google+同步转发到新浪微博,包括图片、文字、链接和地理坐标
Home Page: http://weibo.com/sunnersun
License: MIT License
将Google+同步转发到新浪微博,包括图片、文字、链接和地理坐标
Home Page: http://weibo.com/sunnersun
License: MIT License
panhaidong@ubuntu:/data/projects/source/buzz2weibo$ ./buzz2weibo.py ----------------------- syncing tag:google.com,2010:buzz:z13ldbgqus2wtlnq004cjlspvqv2cvjjzes Google Reader iPhone 4 即将成为 Flickr 上最热门的拍照设备 - 爱范儿: 拇指资讯小众讨论 http://www.ifanr.com/38530 http://www.ifanr.com/wp-content/uploads/2011/04/clip_image008_thumb.gif clip_image008_thumb.gif Traceback (most recent call last): File "./buzz2weibo.py", line 116, in post2weibo(api, act) File "./buzz2weibo.py", line 44, in post2weibo status = api.upload(filename, status=message, lat=geo[0], long=geo[1]) File "/data/projects/source/buzz2weibo/weibopy/api.py", line 203, in upload )(self, *args, **kargs) File "/data/projects/source/buzz2weibo/weibopy/binder.py", line 191, in _call return method.execute() File "/data/projects/source/buzz2weibo/weibopy/binder.py", line 177, in execute raise WeibopError(error_msg) weibopy.error.WeibopError: error_code:401,40107:Oauth Error: signature_invalid! panhaidong@ubuntu:/data/projects/source/buzz2weibo$
buzz里会有很多以前的内容,不需要都同步到weibo上,希望能增加判断,只同步最近一周,或者一个月内的内容。老的内容就不需要同步了
syncing tag:google.com,2010:buzz:z13ldbgqus2wtlnq004cjlspvqv2cvjjzes
Google Reader
iPhone 4 即将成为 Flickr 上最热门的拍照设备 - 爱范儿: 拇指资讯小众讨论
http://www.ifanr.com/38530
http://www.ifanr.com/wp-content/uploads/2011/04/clip_image008_thumb.gif
clip_image008_thumb.gif
Traceback (most recent call last):
File "./buzz2weibo.py", line 116, in
post2weibo(api, act)
File "./buzz2weibo.py", line 44, in post2weibo
status = api.upload(filename, status=message, lat=geo[0], long=geo[1])
File "/data/projects/source/buzz2weibo/weibopy/api.py", line 203, in upload
)(self, _args, *_kargs)
File "/data/projects/source/buzz2weibo/weibopy/binder.py", line 191, in _call
return method.execute()
File "/data/projects/source/buzz2weibo/weibopy/binder.py", line 177, in execute
raise WeibopError(error_msg)
weibopy.error.WeibopError: error_code:401,40107:Oauth Error: signature_invalid!
panhaidong@ubuntu:/data/projects/source/buzz2weibo$
http://www.weibo.com/1494888412/xxQ5sf0BC
看这个抓图,昨天就被这条信息给阻塞了。导致cron运行不下去了。
Here is the output:
syncing z124jnxgloiiflprf04ci5chptn5fboizrs0k
https://plus.google.com/108880597196842544749/posts/gRM3uZ1yKhq
水立方 & 西单apple store...其实水是挖坑时候发现的,让我围起来了....
http://lh6.googleusercontent.com/--uA08CJFgnc/T6ZuSeASSOI/AAAAAAAABaA/trWICcMseo8/2012-05-06_20.21.34.png
http://lh3.googleusercontent.com/-eeazkQ71ngA/T6ZuV06dGOI/AAAAAAAABaI/ztr5ngTlhpM/2012-05-06_20.25.42.png
http://lh4.googleusercontent.com/-lI1tPh8CO_0/T6ZuZH_pxiI/AAAAAAAABaQ/RmbJRdSpj70/2012-05-06_20.26.56.png
[None, None]
Traceback (most recent call last):
File "buzz2weibo.py", line 175, in
if post2weibo(api, act):
File "buzz2weibo.py", line 87, in post2weibo
imagefile = catimages(imagefiles)
File "buzz2weibo.py", line 60, in catimages
result_img.save(imagefile)
File "/usr/lib/python2.6/site-packages/PIL/Image.py", line 1405, in save
save_handler(self, fp, filename)
File "/usr/lib/python2.6/site-packages/PIL/JpegImagePlugin.py", line 409, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
File "/usr/lib/python2.6/site-packages/PIL/ImageFile.py", line 487, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File "/usr/lib/python2.6/site-packages/PIL/Image.py", line 391, in _getencoder
raise IOError("encoder %s not available" % encoder_name)
IOError: encoder jpeg not available
the Error occurs when post have multi-pictures
buzz2weibo 遇到不能访问的链接,就停住了。
例如buzz里有个图片的链接是http://3.bp.blogspot.com/ZatkTbq9t6w/Ta3NBlLFIJI/AAAAAAAAAhU/lpQikLk2Xjo/s1600/ATT00003.jpg
而我这里不能直接访问blogspot.com,所以现在就挂了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.