> You need to step back a bit and get a better understanding of
> variables
> and functions and how to use them. You are trying to run before you
> can walk.
>:
> You need to sit down and work through which variables you need
> and which functions of urllib you need.
>
> I suspect you only need
Matt- Have you tried running this line-by-line in IDLE? I've done a script
almost exactly the same as what you're doing ( I downloaded a .jpg file from
a web-server ), and when I was trying to learn what commands did what, I
quickly changed from trying to write a 'program' to running lines
ind
> I have changed the code as following but it still printing the
> contains as something I don't know what it is instead of saving
> locally!
You need to step back a bit and get a better understanding of
variables
and functions and how to use them. You are trying to run before you
can walk.
>
Danny,
This script has to do two things:
1) Hit a site where I would like to download something
2) Read it what the file
3) Download it locally.
I'm a beginner, but according to what it is printing I'm thinking it is opening and is able to read the site (I'm wrong since I have been studying Pytho
Alan,
I have changed the code as following but it still printing the contains as something I don't know what it is instead of saving locally! If you click the link in this code, you will see the type of file I would like to be able to download in this script.
import urllibimport sys
# Get a file-
On Mon, 22 May 2006, MATATA EMMANUEL wrote:
> I just made some changes, but I still can't get my file saved on my local
> drive:
Ok. Up to what part of the program works?
Don't just say it doesn't work: can you try isolating what parts are
working as expected, and what parts aren't working a
> I need help on this script. I'm trying to download zip file from the
> web and store it to my local drive: It is printing info, but doesn't
> download any thing.
Looks like you are a wee bit confused on what you are trying to do.
> import urllib
> import sys
> # Get a file-like object from th
Danny,
I just made some changes, but I still can't get my file saved on my local drive:
here is the new version of the code:
++
import urllibimport sys
# Get a file-like object from the web and store it locally.
url = ""http://www.co.rowan.nc
On Mon, 22 May 2006, MATATA EMMANUEL wrote:
> import urllib
> import sys
> # Get a file-like object from the web and store it locally.
> url = "http://www.co.rowan.nc.us/enviroservs/downloads.htm";
> f = urllib.urlopen(url)
> # connect to the remote
> try:
> remote = urllib.urlopen(url)
> ex
I need help on this script. I'm trying to download zip file from the web and store it to my local drive: It is printing info, but doesn't download any thing. Can anyone assist here?
import urllibimport sys# Get a file-like object from the web and store it locally.url = ""http://www.esri.com">"f =
10 matches
Mail list logo