# HG changeset patch # User Peter Sanchez # Date 1467578966 25200 # Sun Jul 03 13:49:26 2016 -0700 # Node ID e74f6d1c8bd2c5cb19bd737f450e02dde9720b3e # Parent a76e24ca70be075359df3204ab39fcf3b4549d88 Adding parser to BeautifulSoup call. Removing need for additional FB authorize paths diff --git a/tinder/facebook.py b/tinder/facebook.py --- a/tinder/facebook.py +++ b/tinder/facebook.py @@ -77,7 +77,7 @@ pass def get_form_data_from_content(self, content, **kwargs): - bs = BeautifulSoup(content) + bs = BeautifulSoup(content, 'lxml') form = self.get_form_from_bs_content(bs, **kwargs) return self.get_form_data(form) @@ -122,7 +122,7 @@ data['email'] = self.username data['pass'] = self.password - def authorize(self): + def _authorize(self): response = super(FacebookAuthRequest, self).authorize() if 'Cookies Required' in response.content: