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 a 5-line python script:

import sys, urllib
try:
   print urllib.unquote(sys.stdin.readline())
except:
   print "could not be unquoted."


On Mon, 8 Apr 2002, Kent Borg wrote:

> Anyone know of a simple but good little URL parser?  I want something
> that will take an obfuscated URL of the sort included in some spam,
> the ones that are full of %'s and =2e's and stuff like that.
> 
> I want to know who is being promoted in spam so I can complain to
> their provider.  The complaints must be annoying to them, otherwise
> why obscure themselves?
> 
> I can decode the URLs by hand, but that is a slow and a pain.  I could
> let my web browser decode them and then look at the result in netstat
> or something, but I don't want to provide them with any hits on their
> ads, information of my IP address, etc.
> 
> So I want something I can feed
> "http://%36%36%2E%333.%36%30%2E9%31%2Fme%65tp%65o%70%6C%65/"; and find
> out the machine it really points to.
> 
> Suggestions?
> 
> 
> Thanks,
> 
> -kb
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss
> 

-- 
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