# 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))