Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

2009/11/15

My Twitter Python script

I know there are tons of twitter python script out there. Here is my simple python command line script to send twitter update:


import twitter, sys
api = twitter.Api()

USERNAME = 'YOUR_TWITTER_USERNAME'
PASSWORD = 'YOUR_TWITTER_PASSWORD'

api = twitter.Api(username=USERNAME, password=PASSWORD)

if len ( sys.argv ) > 1:
message = sys.argv[1]
else:
message = raw_input('Your twitter message: ')

status = api.PostUpdate( message )


You're going to need Python twitter installed, of course.

2009/03/02

Google App Engine Pending downtime

Just gone to Google App Engine's status page and saw them have scheduled downtime coming up.

Here's their relevant thread on it.

2009/03/01

Google I/O Session 2008: Google App Engine with Django

I am in the process of porting DB Timetable from a Django deployment to Google App Engine. The biggest problem is Google runs their server on UTC. So now I have to rewrite the time calculations with PyTZ and get them working again.

Here's their session last year by Guido himself: