Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e33aed

Browse filesBrowse files
committed
added using crawlera section in using proxies tutorial
1 parent 799a0a7 commit 1e33aed
Copy full SHA for 1e33aed

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Open diff view settings
Collapse file
+12Lines changed: 12 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.