fixing RC4 and cert for pp browser

This commit is contained in:
Vincent Paredes 2015-05-18 11:55:28 +02:00 committed by Romain Bignon
commit be53563e9b

View file

@ -18,6 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>. # along with weboob. If not, see <http://www.gnu.org/licenses/>.
import requests
import urllib import urllib
from urlparse import urlsplit, parse_qsl from urlparse import urlsplit, parse_qsl
@ -34,6 +35,7 @@ __all__ = ['LCLBrowser','LCLProBrowser']
# Browser # Browser
class LCLBrowser(LoginBrowser): class LCLBrowser(LoginBrowser):
BASEURL = 'https://particuliers.secure.lcl.fr' BASEURL = 'https://particuliers.secure.lcl.fr'
VERIFY = False
login = URL('/outil/UAUT/Authentication/authenticate', login = URL('/outil/UAUT/Authentication/authenticate',
'/outil/UAUT\?from=.*', '/outil/UAUT\?from=.*',
@ -57,6 +59,12 @@ class LCLBrowser(LoginBrowser):
TIMEOUT = 30.0 TIMEOUT = 30.0
def __init__(self, *args, **kwargs):
requests.packages.urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST += ':RC4'
super(LCLBrowser, self).__init__(*args, **kwargs)
def do_login(self): def do_login(self):
assert isinstance(self.username, basestring) assert isinstance(self.username, basestring)
assert isinstance(self.password, basestring) assert isinstance(self.password, basestring)