Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URL Parsing Utility?



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.







BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org