demo.py 161 B

123456
  1. import urllib3
  2. http = urllib3.PoolManager(num_pools=5, headers={'User-Agent': 'ABCDE'})
  3. resp1 = http.request('GET', 'https://www.baidu.com')
  4. print(resp1.data)