Skip to content


Subversion checkout URL

You can clone with
Download ZIP
a gem to help api integration for 新浪微博 (
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



One of the goals of this gem was to have the same syntax as the twitter gem wherever possible so that it would be easy to learn and use. Download the gem and give it a try. Also, I've put together a small demo of how you can use the weibo gem using sinatra.

gem install weibo
git clone git://
cd weibo
ruby example/example.rb
open http://localhost:4567

Most of the 新浪微博 api is implemented by this gem. If I missed something, or Sina added something, please feel free to fork it and add it yourself. I will do my best to keep the gem up to date.

This gem was made in the process of creating {叽叽喳喳.de, please take a moment and go and check out that project. I think that it is a very usful tool for interacting with 新浪微博.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Sites using the Weibo gem

(Please let me know if your site is using the gem so I can list you here)

Special Thanks

This library was based upon and is an adaptation of John Nunemaker's twitter gem. It started as the twitter gem and has been adapted in the necessary ways to make it work with's api. I'm using it with his blessing, thanks John.


Copyright © 2010 Scott Ballantyne. See LICENSE for details.

Something went wrong with that request. Please try again.