Spaces:
Building
Building
GilangAlRusliadi
commited on
Commit
•
b0be6b7
1
Parent(s):
b13bd79
others.py
CHANGED
@@ -54,10 +54,10 @@ def link_redirect(url):
|
|
54 |
info += "Redirects: \n"
|
55 |
for resp in response.history:
|
56 |
status = status_codes.get(resp.status_code, 'Kode Status Tidak Diketahui')
|
57 |
-
info += f"[{resp.status_code} {status}
|
58 |
info += "Final destination: \n"
|
59 |
status = status_codes.get(response.status_code, 'Kode Status Tidak Diketahui')
|
60 |
-
info += f"[{response.status_code} {status}
|
61 |
else:
|
62 |
info += "No Redirects: \n"
|
63 |
|
|
|
54 |
info += "Redirects: \n"
|
55 |
for resp in response.history:
|
56 |
status = status_codes.get(resp.status_code, 'Kode Status Tidak Diketahui')
|
57 |
+
info += f"[{resp.status_code}] : {status} \n{resp.url}\n\n"
|
58 |
info += "Final destination: \n"
|
59 |
status = status_codes.get(response.status_code, 'Kode Status Tidak Diketahui')
|
60 |
+
info += f"[{response.status_code}] : {status} \n{response.url}\n"
|
61 |
else:
|
62 |
info += "No Redirects: \n"
|
63 |
|