LoremPizza commited on
Commit
d246316
·
verified ·
1 Parent(s): 111b123

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -0
test.py CHANGED
@@ -143,6 +143,8 @@ async def get_film():
143
  random_headers['user-agent'] = User_Agent
144
  #Get real token and expires by looking at the page in the iframe, vixcloud/embed
145
  resp = requests.get(iframe, headers = random_headers, allow_redirects=True, proxies = proxies)
 
 
146
  soup= BeautifulSoup(resp.text, "lxml")
147
  script = soup.find("body").find("script").text
148
  token = re.search(r"'token':\s*'(\w+)'", script).group(1)
 
143
  random_headers['user-agent'] = User_Agent
144
  #Get real token and expires by looking at the page in the iframe, vixcloud/embed
145
  resp = requests.get(iframe, headers = random_headers, allow_redirects=True, proxies = proxies)
146
+ print(resp)
147
+ print(resp.text)
148
  soup= BeautifulSoup(resp.text, "lxml")
149
  script = soup.find("body").find("script").text
150
  token = re.search(r"'token':\s*'(\w+)'", script).group(1)