Skip to content
Newer
Older
100644 18 lines (12 sloc) 341 Bytes
1feb8e0 @drdrang Added config script for getting user authentication info.
authored Apr 2, 2010
1 #!/usr/bin/python
2
3 from urllib import urlopen
4 import re
5
69a3b2f @drdrang Simplify the config.py script.
authored Jun 14, 2011
6 print '''Enter your Twitter username.
1feb8e0 @drdrang Added config script for getting user authentication info.
authored Apr 2, 2010
7 '''
8
9 uname = raw_input('Username: ')
10
11 url = 'http://twitter.com/users/show/%s.xml' % uname
12 uid = re.sub(r'\s*</?id>\s*', '', urlopen(url).readlines()[2])
13
14 print '''
69a3b2f @drdrang Simplify the config.py script.
authored Jun 14, 2011
15 Copy the following line and paste into twoot.js.
1feb8e0 @drdrang Added config script for getting user authentication info.
authored Apr 2, 2010
16 '''
17 print "var UID = %s;" % uid
Something went wrong with that request. Please try again.