Skip to content

Instantly share code, notes, and snippets.

@yalla
Created March 17, 2017 19:04
Show Gist options
  • Save yalla/4dc25215804f0345b474ff650f0ca340 to your computer and use it in GitHub Desktop.
Save yalla/4dc25215804f0345b474ff650f0ca340 to your computer and use it in GitHub Desktop.
[alex@zmachine python]$ python longurl.py https://t.co/3NFnfJF9am
Code: 301 current URL: https://t.co/3NFnfJF9am Iteration: 1
Code: 301 current URL: http://ow.ly/GgAd30a0r3G Iteration: 2
Code: 301 current URL: https://www.foreignaffairs.com/articles/northern-europe/2017-03-15/natos-northern-alliance?cid=int-lea&pgtype=hpg Iteration: 3
Code: 301 current URL: https://foreignaffairs.com/articles/northern-europe/2017-03-15/natos-northern-alliance Iteration: 4
Code: 301 current URL: https://foreignaffairs.com/articles/northern-europe/2017-03-15/natos-northern-alliance Iteration: 5
https://foreignaffairs.com/articles/northern-europe/2017-03-15/natos-northern-alliance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment