2024-04-20 09:33:16 发布
网友
我有下面的脚本,其中拉所有网址重定向历史。有没有办法让我知道这些重定向生效的日期和时间?你知道吗
r = requests.get(url) for h in r.history: print (h.url) print (r.url)
您可以从history objs的头文件中获取。 就像。你知道吗
r = requests.get(url) for h in r.history: print (h.url) print (h.headers.get("date")) print (r.url)
您可以从history objs的头文件中获取。 就像。你知道吗
相关问题 更多 >
编程相关推荐