fixing RC4 and cert for pp browser
This commit is contained in:
parent
e9d4831b83
commit
be53563e9b
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue