I did this very quick and dirty hack to get tweets to png. Mainly motivated by the Github wiki's restrictions of what can be embedded there.
But it works! (If you see a rendering below...)
See it in action at tweetpng.appspot.com
Replace the id on the url with any tweet id and (if you're lucky) you'll get a nice png.
Implementation note: Renders texts with Google Chart API
You need to create a secrets.py
like
CONSUMER_KEY = "GQlpCF6b.."
CONSUMER_SECRET = ".."
CLIENT_TOKEN = "1525313.."
CLIENT_SECRET = ".."
- Create an OAuth consumer, return url
http://<appid>.appspot.com/callback/
- Paste consumer keys to
secrets.py
- Goto
http://<appid>.appspot.com/auth/
and Allow - Copy-paste client keys from url to
secrets.py
Then you should be all set...
For details, see Nick's blog.
- Optimize splitting of long words (URLs, chinese) with binary search. Binary splitting is currently done only on word level, not character.