Instead of saving text files i need as html
Sion Arrowsmith
siona at chiark.greenend.org.uk
Fri Jun 9 06:30:44 EDT 2006
Tim Chase <tim at thechases.com> wrote:
>> [ ... ]
>> urllib.urlretrieve(lines.strip('/n'), 'c:\\temp\\' \
>> + outfilename.strip('\n')[7:] + '.html')
> [ ... ] I'm not sure what the odd
>slicing is for, but I'll presume the OP knows what they're doing.
It's taking the "http://" off the front of the URL.
>>> len("http://")
7
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list