在Internet存档上重定向后获取URL

问题描述 投票:0回答:1

我有兴趣通过Internet存档以编程方式保存URL。我正在做这个https://web.archive.org/save/ {myLink}的方式。

现在我一直在使用this stackoverflow答案,但它无法完全贯彻。

curl https://web.archive.org/save/{myLink} -s -L -o /dev/null -w '%{url_effective}'
linux curl redirect wget
1个回答
0
投票

curl https://web.archive.org/save/<<<url>>> -s -I | grep Content-Location | awk '{print "http://web.archive.org/save" $2}'

© www.soinside.com 2019 - 2024. All rights reserved.