Spaces:
Paused
Paused
Update test.py
Browse files
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)
|