Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

urllib.request.urlretrieve

Name: Anonymous 2010-09-12 13:28

/prog/ care to explain?
this works

import urllib.request
import urllib.parse
urllib.request.urlretrieve("http://dis.4chan.org/prog/","test.txt")

this doesn't

import urllib.request
import urllib.parse
urllib.request.urlretrieve("http://en.wikipedia.org/wiki/Lemon","test.txt")

Name: Anonymous 2010-09-12 14:16

doesn't work

What is this, your first time asking for programming help?  Provide some information besides "doesn't work", like what does happen?, and what value that urlretrieve() shit returns (if it does return anything; I've never really used Python so I've never read the documentation for that stuff, but presumably it will return at least 1 value that may indicate success or some kind of error code).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List