Skip to content

Commit 1e33aed

Browse files
committed
added using crawlera section in using proxies tutorial
1 parent 799a0a7 commit 1e33aed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)