Automatically Change Your Twitter Background

As a follow-on to yesterday's post, the Python cback.py script has been updated to automatically send your newly generated random image to Twitter to become your new background image. That functionality is not part of the "standard" Twitter Python API so many thanks to lucy for providing the magic necessary code

The new version of the script is here. Save it, then rename it to cback.py. You will also need multipart.py. Before you use it, you will need to adjust the username and password lines (about line 55) to be your valid user name and password.

Twitter is sometimes flaky in taking these images ("urllib2.HTTPError: HTTP Error 500: Internal Server Error"), but then again, I sometimes get similar problems when I try to change my background image from the Twitter Settings dialog.

The cback.py script sometimes generates images greater than the allowed size when used with the wallpaper option. I'll need to fix that.

[]

[]

Comments:

Post a Comment:
Comments are closed for this entry.
About

user12607856

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today