Update run.py
Browse files
run.py
CHANGED
|
@@ -18,5 +18,27 @@ b = get_maxstream(a)
|
|
| 18 |
c = get_m3u8_url_2(b)
|
| 19 |
https://ms-ssd-003.host-cdn.net/hls/llzepfxmrahnmttc2td4jn6q2lecsyow245iaqjss,eunz24hkboon5gjgpfq,pgn324hkbob63ikewna,w4n524hkbof5ccca63q,.urlset/master.m3u8
|
| 20 |
'''
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
c = get_m3u8_url_2(b)
|
| 19 |
https://ms-ssd-003.host-cdn.net/hls/llzepfxmrahnmttc2td4jn6q2lecsyow245iaqjss,eunz24hkboon5gjgpfq,pgn324hkbob63ikewna,w4n524hkbof5ccca63q,.urlset/master.m3u8
|
| 20 |
'''
|
| 21 |
+
headers = {
|
| 22 |
+
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0',
|
| 23 |
+
'Accept': 'application/json, text/javascript, */*; q=0.01',
|
| 24 |
+
'Accept-Language': 'en-US,en;q=0.5',
|
| 25 |
+
# 'Accept-Encoding': 'gzip, deflate, br, zstd',
|
| 26 |
+
'X-Requested-With': 'XMLHttpRequest',
|
| 27 |
+
'DNT': '1',
|
| 28 |
+
'Sec-GPC': '1',
|
| 29 |
+
'Connection': 'keep-alive',
|
| 30 |
+
'Referer': 'https://eduboom.it/',
|
| 31 |
+
# 'Cookie': 'PHPSESSID=ibmi18fulfuhve42sq49tbkkme',
|
| 32 |
+
'Sec-Fetch-Dest': 'empty',
|
| 33 |
+
'Sec-Fetch-Mode': 'cors',
|
| 34 |
+
'Sec-Fetch-Site': 'same-origin',
|
| 35 |
+
'Pragma': 'no-cache',
|
| 36 |
+
'Cache-Control': 'no-cache',
|
| 37 |
+
# Requests doesn't support trailers
|
| 38 |
+
# 'TE': 'trailers',
|
| 39 |
+
}
|
| 40 |
+
params = {
|
| 41 |
+
'term': "Parini",
|
| 42 |
+
}
|
| 43 |
+
response = requests.get('https://eduboom.it/ajax/lessons-search', params=params, headers=headers)
|
| 44 |
+
print(response.text)
|