Mythus commited on
Commit
52c9cb2
·
verified ·
1 Parent(s): 8110aa2

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +20 -7
run.py CHANGED
@@ -4,16 +4,29 @@ import time
4
  def true_url(protect_link):
5
  print(protect_link)
6
  # Define headers
7
- headers = {
8
- "Range": "bytes=0-",
9
- "Referer": "https://d000d.com/",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
- async with httpx.AsyncClient() as client:
12
- response = await client.get(protect_link, timeout=10, headers=headers)
13
- link = response.request.url
14
  print("HERE RESPONSE:", response.status_code)
15
  await time.sleep(1) # Add a delay here
16
- response = await client.get(link, timeout=10, headers=headers)
17
  print("M")
18
  print("RESPONSE TEXT:", response.text)
19
  return
 
4
  def true_url(protect_link):
5
  print(protect_link)
6
  # Define headers
7
+ headers = {
8
+ "Host": "d000d.com",
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
+ "Connection": "keep-alive",
16
+ "Cookie": "file_id=66308942; aff=37046; ref_url=; lang=1",
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
+ response = requests.get(protect_link, timeout=10, headers=headers)
27
+ link = requests.url
 
28
  print("HERE RESPONSE:", response.status_code)
29
  await time.sleep(1) # Add a delay here
 
30
  print("M")
31
  print("RESPONSE TEXT:", response.text)
32
  return