Generalised the Twitter auth token detection
authorTobias Mueller <tobiasmue@gnome.org>
Mon, 20 Dec 2010 00:48:25 +0000 (06:18 +0530)
committerTobias Mueller <tobiasmue@gnome.org>
Mon, 20 Dec 2010 00:51:09 +0000 (06:21 +0530)
pwnitter.py

index 5d84701..3efd967 100755 (executable)
@@ -119,7 +119,7 @@ class Pwnitter(dbus.service.Object):
                         # Newtwitter and Oldtwitter have different formatting, so be lax
                         authToken = ''
 
-                        formMatches = re.search("<.*?authenticity_token.*?>", page, 0)
+                        formMatches = re.search("<.*?auth.*?_token.*?>", page, 0)
                         if formMatches:
                             authMatches = re.search("value=[\"'](.*?)[\"']", formMatches.group(0))