我有兴趣通过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}'
curl https://web.archive.org/save/<<<url>>> -s -I | grep Content-Location | awk '{print "http://web.archive.org/save" $2}'