URL Parsing Utility?

will willg at bluesock.org
Mon Apr 8 17:27:48 EDT 2002


This is the newly enhanced version 2.0 5-line python script:

#!/usr/bin/env python
import sys, urllib

if len(sys.argv) > 1:
   ick = sys.argv[1]
else:
   ick = sys.stdin.readline()

try:
   print urllib.unquote(ick)
except:
   print "could not be unquoted."


It somewhat assumes "env" is in /usr/bin/env and that python is in 
your PATH.  Hope that helps.  :) 

/will


-- 
whatever it is, you can find it at http://www.bluesock.org/~willg/
except Will--you can only see him in real life.






More information about the Discuss mailing list