Spaces:
Paused
Paused
Update run.py
Browse files
run.py
CHANGED
|
@@ -1,7 +1,17 @@
|
|
| 1 |
import requests
|
| 2 |
|
| 3 |
response = requests.get(
|
| 4 |
-
url="http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=7"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
)
|
| 6 |
a = response.url
|
| 7 |
print(a)
|
|
|
|
|
|
| 1 |
import requests
|
| 2 |
|
| 3 |
response = requests.get(
|
| 4 |
+
url="http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=7",
|
| 5 |
+
headers={
|
| 6 |
+
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3",
|
| 7 |
+
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
|
| 8 |
+
"Accept-Language":"en-US,en;q=0.5",
|
| 9 |
+
"Accept-Encoding":"gzip, deflate, br",
|
| 10 |
+
"DNT":"1",
|
| 11 |
+
"Connection":"keep-alive",
|
| 12 |
+
"Upgrade-Insecure-Requests":"1"
|
| 13 |
+
}
|
| 14 |
)
|
| 15 |
a = response.url
|
| 16 |
print(a)
|
| 17 |
+
|