某 url 重定向
语言 python
headers = {
'Accept': '*/*',
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36'
}
try:
resp = requests.get(url="", headers=http_headers, timeout=10)
except Exception as e:
continue
print("resp", resp.url)
当你握紧双手,里面什么也没有;当你打开双手,世界就在你手中。