Spaces:
Paused
Paused
Update run.py
Browse files
run.py
CHANGED
|
@@ -1,37 +1,8 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
response = requests.get(
|
| 6 |
-
url="https://d000d.com/e/9b3w45p3h2gz",
|
| 7 |
-
impersonate="chrome120",
|
| 8 |
-
headers={
|
| 9 |
-
"User-Agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0",
|
| 10 |
-
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
|
| 11 |
-
"Accept-Language":"en-US,en;q=0.5",
|
| 12 |
-
"Accept-Encoding":"gzip, deflate, br, zstd",
|
| 13 |
-
"DNT":"1",
|
| 14 |
-
"Sec-GPC":"1",
|
| 15 |
-
"Alt-Used":"d000d.com",
|
| 16 |
-
"Connection":"keep-alive",
|
| 17 |
-
"Upgrade-Insecure-Requests":"1",
|
| 18 |
-
"Sec-Fetch-Dest":"document",
|
| 19 |
-
"Sec-Fetch-Mode":"navigate",
|
| 20 |
-
"Sec-Fetch-Site":"cross-site",
|
| 21 |
-
"Priority":"u=1",
|
| 22 |
-
"Pragma":"no-cache",
|
| 23 |
-
"Cache-Control":"no-cache",
|
| 24 |
-
"TE":"trailers"
|
| 25 |
-
},
|
| 26 |
-
cookies={
|
| 27 |
-
"file_id":"127746384",
|
| 28 |
-
"aff":"37046",
|
| 29 |
-
"ref_url":"",
|
| 30 |
-
"lang":"1"
|
| 31 |
-
},
|
| 32 |
-
proxies={
|
| 33 |
-
"http": proxy
|
| 34 |
-
}
|
| 35 |
-
)
|
| 36 |
|
| 37 |
-
print(response.text)
|
|
|
|
| 1 |
+
import requests
|
| 2 |
|
| 3 |
+
# Replace with your actual URL and API key
|
| 4 |
+
url = "https://api.webscraping.ai/html?url=https://d000d.com/e/9b3w45p3h2gz&api_key=7346fb33-a268-4392-a558-a9d4d1dc8516"
|
| 5 |
|
| 6 |
+
response = requests.get(url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
print(response.text) # This will print the HTML content of the page
|