from urllib import request

proxy_support = request.ProxyHandler({'http': 'http://xx.xx.xx.xx:xx'})
opener = request.build_opener(proxy_support, request.HTTPHandler)  
request.install_opener(opener)  
  
content = request.urlopen('https://movie.douban.com/').read().decode('utf-8')  
print(content)
