import requests
header = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',}
proxy_pool = {'http': 'http://jkniep:R3L9KvC8@23.106.196.162:29842',
'https': 'http://jkniep:R3L9KvC8@23.106.196.162:29842'}
response = requests.get("https://www.lowes.com/pl/Trash-compactors-Appliances/4294639583",
headers=header, proxies=proxy_pool)
print(response.text)
python requests设置代理(用户名和密码)
最新推荐文章于 2024-05-17 11:03:15 发布