Splitting URLs
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Oct 21 19:01:45 EDT 2007
On Sun, 21 Oct 2007 14:55:01 -0500, Tim Chase wrote:
> there are some goodies in urllib for doing some of this splitting.
> Example code at the bottom of my reply (though it seems to choke on
> certain protocols such as "mailto:" and "ssh:" because urlparse doesn't
> return the netloc properly)
It doesn't? That's... bad. But for my application, probably not
important: I only care about HTTP.
Thanks for the reply and sample code.
--
Steven
More information about the Python-list
mailing list