Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.25 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.25 KB

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...)

Some tweet

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

FORKERS

You need to create a secrets.py like CONSUMER_KEY = "GQlpCF6b.." CONSUMER_SECRET = ".." CLIENT_TOKEN = "1525313.." CLIENT_SECRET = ".."

  1. Create an OAuth consumer, return url http://<appid>.appspot.com/callback/
  2. Paste consumer keys to secrets.py
  3. Goto http://<appid>.appspot.com/auth/ and Allow
  4. Copy-paste client keys from url to secrets.py

Then you should be all set...

For details, see Nick's blog.

TODO

  1. Optimize splitting of long words (URLs, chinese) with binary search. Binary splitting is currently done only on word level, not character.