Update run.py
Browse files
run.py
CHANGED
|
@@ -1,5 +1,23 @@
|
|
| 1 |
import httpx
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
response = httpx.get('https://stremio-rev-proxy.h-y.workers.dev/https://supervideo.cc/e/h2ghuu717fc3')
|
| 5 |
print(response)
|
|
|
|
| 1 |
import httpx
|
| 2 |
|
| 3 |
+
headers = {
|
| 4 |
+
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0',
|
| 5 |
+
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
| 6 |
+
'Accept-Language': 'en-US,en;q=0.5',
|
| 7 |
+
# 'Accept-Encoding': 'gzip, deflate, br, zstd',
|
| 8 |
+
'DNT': '1',
|
| 9 |
+
'Sec-GPC': '1',
|
| 10 |
+
'Connection': 'keep-alive',
|
| 11 |
+
# 'Cookie': 'lang=1',
|
| 12 |
+
'Upgrade-Insecure-Requests': '1',
|
| 13 |
+
'Sec-Fetch-Dest': 'document',
|
| 14 |
+
'Sec-Fetch-Mode': 'navigate',
|
| 15 |
+
'Sec-Fetch-Site': 'none',
|
| 16 |
+
'Sec-Fetch-User': '?1',
|
| 17 |
+
'Priority': 'u=0, i',
|
| 18 |
+
# Requests doesn't support trailers
|
| 19 |
+
# 'TE': 'trailers',
|
| 20 |
+
}
|
| 21 |
|
| 22 |
+
response = httpx.get('https://stremio-rev-proxy.h-y.workers.dev/https://supervideo.cc/e/h2ghuu717fc3', headers = headers)
|
| 23 |
print(response)
|