redirect-chain - Getting a comfortable insight input URL redirects history

14 February 2020   0 comments   Python

https://pypi.org/project/redirect-chain/

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!

Comments

Your email will never ever be published

Related posts

Previous:
How to resolve a git conflict in poetry.lock 07 February 2020
Next:
Build pyenv Python versions on macOS Catalina 10.15 19 February 2020
Related by Keyword:
hashin 0.14.0 with --update-all and a bunch of other features 13 November 2018
Fancy linkifying of text with Bleach and domain checks (with Python) 10 October 2018
How to NOT start two servers on the same port 11 June 2018
Best practice with retries with requests 19 April 2017
Fastest way to download a file from S3 29 March 2017