2014-10-26, 12:22
(2014-03-19, 04:56)khuong Wrote: Any chance you can rewrite this with urllib3 to fix the SNI problems that urllib and urllib2 have?
i need to get it with urllib3 worlking too.......
what we need for this is
Code:
import certifi
import ssl
import urllib3
from urllib3.contrib import pyopenssl
pyopenssl.inject_into_urllib3()
opener = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where())
userAgent = {'qUser-agent':'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36','Cookie':'cookie_name=Netflix'}
I guess i got the Login part to work. Will look into it in the upcoming weeks. If someone wants to join, you are welcome.
I have no idea of all of this, just googleing around