Parsing data from URL

R. C. James Harlow james at wrong.nu
Sun Apr 24 22:04:22 EDT 2005


On Monday 25 April 2005 01:24, Harlin Seritt wrote:

> dat = urllib.urlopen(url, 'r').read()

Drop the 'r' - urlopen is posting the 'r' to the server, instead of doing what 
you mean, opening the file read-only.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050425/79c08437/attachment.sig>


More information about the Python-list mailing list