Update run.py
Browse files
run.py
CHANGED
|
@@ -1,35 +1,14 @@
|
|
| 1 |
-
import requests
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
-
headers = {
|
| 6 |
-
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0',
|
| 7 |
-
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
|
| 8 |
-
'Accept-Language': 'en-US,en;q=0.5',
|
| 9 |
-
# 'Accept-Encoding': 'gzip, deflate, br, zstd',
|
| 10 |
-
'DNT': '1',
|
| 11 |
-
'Sec-GPC': '1',
|
| 12 |
-
'Alt-Used': 'd000d.com',
|
| 13 |
-
'Connection': 'keep-alive',
|
| 14 |
-
# 'Cookie': 'lang=1',
|
| 15 |
-
'Upgrade-Insecure-Requests': '1',
|
| 16 |
-
'Sec-Fetch-Dest': 'document',
|
| 17 |
-
'Sec-Fetch-Mode': 'navigate',
|
| 18 |
-
'Sec-Fetch-Site': 'cross-site',
|
| 19 |
-
'Priority': 'u=1',
|
| 20 |
-
'Pragma': 'no-cache',
|
| 21 |
-
'Cache-Control': 'no-cache',
|
| 22 |
-
# Requests doesn't support trailers
|
| 23 |
-
# 'TE': 'trailers',
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
# Set up the SOCKS5 proxy
|
| 27 |
proxy = "uigjnltt@wh0r7ws6tq0q206.41.172.74:6634"
|
| 28 |
proxies = {
|
| 29 |
"http": proxy,
|
| 30 |
}
|
| 31 |
# Make a request to example.com
|
| 32 |
-
response = requests.get("https://d000d.com/e/9b3w45p3h2gz",headers=headers,proxies=proxies)
|
| 33 |
|
| 34 |
# Print the response
|
| 35 |
print(response.text)
|
|
|
|
| 1 |
+
from curl_cffi import requests
|
| 2 |
|
| 3 |
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Set up the SOCKS5 proxy
|
| 6 |
proxy = "uigjnltt@wh0r7ws6tq0q206.41.172.74:6634"
|
| 7 |
proxies = {
|
| 8 |
"http": proxy,
|
| 9 |
}
|
| 10 |
# Make a request to example.com
|
| 11 |
+
response = requests.get("https://d000d.com/e/9b3w45p3h2gz",headers=headers,proxies=proxies, impersonate = "chrome120")
|
| 12 |
|
| 13 |
# Print the response
|
| 14 |
print(response.text)
|