# -*- coding: utf-8 -*- 
'''
Created on 2017��6��1��

@author: haoweizh
'''
import requests

proxies = {'http': 'http://135.245.48.34:8000/', 'https': 'https://135.245.48.34:8000/'}
# r = requests.get('https://api.github.com/user', auth=('colvin777@163.com', '!lym811116'),proxies = proxies)
# print(r.status_code)
# print(r.headers['content-type'])
# print(r.encoding)
# print(r.text)
# print(r.json())

r = requests.get('http://1.hd.mi.com/detail?pid=88058798008989&product_id=2170800024', proxies = proxies)
print(r.encoding)
print(r.content)