This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import sys | |
import urllib2 | |
# This script uses HEAD requests (with fallback in case of 405) | |
# to follow the redirect path up to the real URL | |
# (c) 2012 Filippo Valsorda - FiloSottile | |
# Released under the GPL license |