📅  最后修改于: 2022-03-11 14:48:26.529000             🧑  作者: Mango
import requests
url = "http://mock.kite.com/redirect"
print requests.get(url, allow_redirects = False).text
OUTPUT
Redirecting...
Redirecting...
You should be redirected automatically to target URL: /text. If not click the link.