综合开发

Peter Bengtsson: redirect-chain – Getting a comfortable insight input URL redirects history

微信扫一扫,分享到朋友圈

Peter Bengtsson: redirect-chain – Getting a comfortable insight input URL redirects history

You can accomplish the same with curl -L
but I’ve had this as a little personal hack script in my ~/bin
folder on my computer. Thought I’d make it a public tool. Also, from here, a lot more can be done to this script if you wanna help out with ideas
.

▶ redirect-chain http://developer.mozilla.org/en-US/docs/xpcshell
0  http://developer.mozilla.org/en-US/docs/xpcshell 301
1 > https://developer.mozilla.org/en-US/docs/xpcshell 301
2 >> https://developer.mozilla.org/docs/en/XPConnect/xpcshell 302
3 >>> https://developer.mozilla.org/en-US/docs/en/XPConnect/xpcshell 301
4 >>>> https://developer.mozilla.org/en-US/docs/XPConnect/xpcshell 301
5 >>>>> https://developer.mozilla.org/en-US/docs/Mozilla/XPConnect/xpcshell 301
6 >>>>>> https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_bindings/XPConnect/xpcshell 200

It basically gives you a pretty summary of redirects from a starting URL.

To install it on your system run:

pipx install redirect-chain

Happy Friday!


Follow @peterbe
on Twitter

微信扫一扫,分享到朋友圈

Peter Bengtsson: redirect-chain – Getting a comfortable insight input URL redirects history

Eight advantages of python to help you in machine learning!

上一篇

Python: flattening a JSON

下一篇

你也可能喜欢

评论已经被关闭。

插入图片

热门栏目

Peter Bengtsson: redirect-chain – Getting a comfortable insight input URL redirects history

长按储存图像,分享给朋友