Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-*-coding: cp1251 -*-
- import urllib2
- import cookielib
- str = raw_input()
- out=open("output.txt","w")
- cookie = cookielib.CookieJar()
- opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))
- urllib2.install_opener(opener)
- headers = {"User-Agent" : "Mozilla/4.0 (compatible; MSIE 5.5; WindowsNT)" }
- site = urllib2.urlopen(str)
- out.write(site.read())
Advertisement
Add Comment
Please, Sign In to add comment