Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Putting Google Video onto Your iPod
Subject:   URL Unescaping
Date:   2006-01-29 07:11:31
From:   rkt
Unfortunately, there's no "unescape URL" utility built into the Macintosh (or at least not one that I could find).


Of course There's More Than One Way To Do It applies, but Python -- distributed with Mac OS X so Developer Tools not required -- can happily be used to unmangle the extracted URL:
python -c "import sys,urllib; print urllib.unquote(sys.argv[1])" URL
This command is a straight drop in replacement for unescape utility.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Erica Sadun photo URL Unescaping
    2006-01-29 08:43:45  Erica Sadun | O'Reilly AuthorO'Reilly Blogger [View]

    Excellent point. I tend to use perl (URI::Escape) myself. But as all my "man -k" 'ing turned up nothing command-line wise, I thought "why not just put together what's essentially a one-liner C-wise?".