We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 799a0a7 commit 1e33aedCopy full SHA for 1e33aed
web-scraping/using-proxies/using-crawlera.py
@@ -0,0 +1,12 @@
1
+import requests
2
+
3
+url = "http://icanhazip.com"
4
+proxy_host = "proxy.crawlera.com"
5
+proxy_port = "8010"
6
+proxy_auth = ":"
7
+proxies = {
8
+ "https": f"https://{proxy_auth}@{proxy_host}:{proxy_port}/",
9
+ "http": f"http://{proxy_auth}@{proxy_host}:{proxy_port}/"
10
+}
11
12
+r = requests.get(url, proxies=proxies, verify=False)
0 commit comments