Hi everyone.
For example, I have cookies
my_cookies = {'name': 'Albert', 'uid': '654897897564'}
and I want to open page http://website.com
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
opener.addheaders.append(('User-agent', 'Mozilla/5.0 (compatible)'))
opener.open('http://website.com').read()
How I can do this with my predefined cookies ?