Mythus commited on
Commit
51a744c
·
verified ·
1 Parent(s): 66f80d5

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +16 -48
run.py CHANGED
@@ -1,53 +1,21 @@
1
  from curl_cffi import requests
2
  import re
3
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- # Set up the SOCKS5 proxy
6
- proxy = "uigjnltt:wh0r7ws6tq0q@173.0.9.70:5653"
7
- proxies = {
8
- "http": proxy,
9
- "https": proxy,
10
- }
11
- cookies = {
12
- 'cf_clearance': 'rBn5_8YpGHW3K0pzXA79iDu9AZwE1VWnqIeX4UrNNvo-1725633278-1.2.1.1-xRB_fU8FfLm4Rlqn.jR1hatQZAZfnwWP08lDYrLqDKufb83QRXHX9PpSS4N9S6.XoeaPYEOvHne_xTlE.IPl.zpv0V7Dtmm09lypM9kZweGELYOQzITxAO2j7afe2PS71pDzfojZg9dfoxy9ZfYu4fADyeKSHaHzdYIL8h_qftkv6sobi661upBu1sZDf3fD1C16rW8MEAYdP4XFejGku4U6vv7XJnQzWK8lQ0J4Ug3tS6Jd46SuGABfTF7PvWQTlSC_XJfELdNTotyHgaUjqhgdAwwLjECCTAXlyASQyaAzGPAIQ8.8Tx6AWrGvGX3.wgGnMmg9pAOtLstHl5XDQjkUtNWK5n0LBS61hM8qzAY',
13
- 'lang': '1',
14
- }
15
- headers = {
16
- 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0',
17
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
18
- 'Accept-Language': 'en-US,en;q=0.5',
19
- # 'Accept-Encoding': 'gzip, deflate, br, zstd',
20
- 'DNT': '1',
21
- 'Sec-GPC': '1',
22
- 'Alt-Used': 'dropload.io',
23
- 'Connection': 'keep-alive',
24
- # 'Cookie': 'cf_clearance=rBn5_8YpGHW3K0pzXA79iDu9AZwE1VWnqIeX4UrNNvo-1725633278-1.2.1.1-xRB_fU8FfLm4Rlqn.jR1hatQZAZfnwWP08lDYrLqDKufb83QRXHX9PpSS4N9S6.XoeaPYEOvHne_xTlE.IPl.zpv0V7Dtmm09lypM9kZweGELYOQzITxAO2j7afe2PS71pDzfojZg9dfoxy9ZfYu4fADyeKSHaHzdYIL8h_qftkv6sobi661upBu1sZDf3fD1C16rW8MEAYdP4XFejGku4U6vv7XJnQzWK8lQ0J4Ug3tS6Jd46SuGABfTF7PvWQTlSC_XJfELdNTotyHgaUjqhgdAwwLjECCTAXlyASQyaAzGPAIQ8.8Tx6AWrGvGX3.wgGnMmg9pAOtLstHl5XDQjkUtNWK5n0LBS61hM8qzAY; lang=1',
25
- 'Upgrade-Insecure-Requests': '1',
26
- 'Sec-Fetch-Dest': 'document',
27
- 'Sec-Fetch-Mode': 'navigate',
28
- 'Sec-Fetch-Site': 'cross-site',
29
- 'Priority': 'u=1',
30
- 'Pragma': 'no-cache',
31
- 'Cache-Control': 'no-cache',
32
- # Requests doesn't support trailers
33
- # 'TE': 'trailers',
34
- }
35
-
36
-
37
- # Make a request to example.com
38
- response = requests.get("https://stayonline.pro/ajax/linkEmbedView.php", impersonate = "chrome120",headers=headers)
39
- print(response.text)
40
-
41
  '''
42
- pattern = r"(\/pass_md5\/.*?)'.*(\?token=.*?expiry=)"
43
- match = re.search(pattern, response.text, re.DOTALL)
44
- print(match[1])
45
- url =f'https://d000d.com{match[1]}'
46
- headers = {
47
- "Range": "bytes=0-",
48
- "Referer": "https://d000d.com/",
49
- }
50
- rebobo = requests.get(url, headers=headers, allow_redirects=True, impersonate = "chrome120",proxies = proxies)
51
- print(rebobo.text)
52
- # Print the response
53
- '''
 
1
  from curl_cffi import requests
2
  import re
3
 
4
+ def stayonline(url):
5
+ headers = {
6
+ 'origin': 'https://stayonline.pro',
7
+ 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 OPR/111.0.0.0',
8
+ 'x-requested-with': 'XMLHttpRequest',
9
+ }
10
+ data = {'id': url.split("/")[-2], 'ref': ''}
11
+ response = httpx.post('https://stayonline.pro/ajax/linkEmbedView.php', headers=headers, data=data)
12
+ uprot_url = response.json()['data']['value']
13
+ print(uprot_url)
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  '''
16
+ a = fake_maxstream("https://cb01.technology/guncrazy-1992/")
17
+ 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
+ a = stayonline("https://stayonline.pro/e/4MRX9/")