An easy way to hook Twitter API on Django

I was working on a project and I needed to hook on some twitter API onto Django.

I researched quite a bit and came across Twython.

Twython is the the easiest  Twitter client for Django in terms of :

  1. installation
  2. executing of common functions such as searching, retrieving public timeline results.

If you do not want to install using the official method described here, you can simply drop the files  streaming.py, twitter_endpoints.py and twython.py ( found in the folder twython , right here ) into your django app.

Give it a try, it should work for you.

Twitter JavaScript API (and a small error).

Yes, it might be old news, Twitter has a pure javascript api found at http://platform.twitter.com/js-api.html But i wanted to point out that there’s an error in their sample code. At http://platform.twitter.com/js-api.html, the “facade method example” has a small mistake.

status.screenName

should read

status.user.screenName

If you use the former, you will receive a undefined value. That’s all for now.

Get “JavaScript Testing Beginner’s Guide” worth $30.59 for FREE

Hi all, as you know I wrote the book JavaScript Testing Beginner’s Guide for PacktPub publishing.

We are now searching for reviewers.

As a reviewer, you will receive a digital copy of the book, worth $30.59 for free.

If you are interested in writing a review for “JavaScript Testing Beginner’s Guide”, feel free to send me a private message at Twitter here : http://twitter.com/#!/liangeugene