The original intention was to create a tool to provide convenience for Weibo users, but due to limitations, it’s currently only suitable for personal use. The source code is open source.
This web application was originally designed to download all entries from my Tencent Weibo favorites to my local computer and then convert them into PDF or other formats. For example, when I see famous quotes or insightful remarks, I want to share them. However, sharing too many entries is a hassle for my followers (two colleagues I forcibly recruited as followers complain daily that when they open their Weibo accounts, they think they’ve entered my homepage). Tencent Weibo also has a limit of 1000 entries. Furthermore, browsing through pages on the homepage is too cumbersome. Therefore, the idea of localizing the favorites was conceived; after all, this is knowledge.
I researched Tencent’s API (open.t.qq.com), understood the OAuth authentication process, reviewed Django, and wrote the code. However, a problem arose. The API for reading favorites can only read 20 entries at a time, while 1000 entries would require 50 accesses. Such a large number of frequent requests easily reached the limit (number of visits, access frequency), so I don’t think it has much practical value; it’s fine for personal use though.
This application is named favoman, a name I thought about for a long time. favoman uses the open-source OAuth library (oauth.googlecode.com) and the Django framework. I should also mention that several SDKs uploaded by users on open.t.qq.com, after only looking at the PHP versions, I found that their code is completely identical to the key code of the PHP SDK on oauth.googlecode.com, but the code files don’t mention any original author information or MIT License.
This application depends on:
Python (>=2.6.6) + OAuth (oauth.googlecode.com) + Django (>=1.2.3)
Note that you need to fill in your own consumer key/secret in the oauthy.py file.
Download: favoman.tar.gz


Leave a Reply