freeware

Threads Posts Archives


<< Previous Thread << Previous Post Topic 14246 of 16625
Posts 8 of 10
Next Post >> Next Thread >>

Re: Need page source for a list of URLs. Anyone know of any program?


de 3c273 06/06/2006 10:54



If you have Python installed (http://www.python.org), the following script
will do what you want.

-----begin-----
import urllib
urlfile = open('c:\temp\url.txt', 'r')
for lines in urlfile:
try:
outfilename = lines.replace('/', '-')
urllib.urlretrieve(lines.strip('/n'), 'c:\temp\' +
outfilename.strip('n')[7:] + '.txt')
except:
pass
-----end-----

Note that the list of urls must be a text file and the urls must begin with
"http://" (without the quotes). I would suggest that you make a folder
called "temp" on your c drive and name your list of urls "url.txt", then you
can use the script unaltered. If you wish to use this and need help, post
back here.
Louis


"Shani" <Shani718@gmail.com> wrote in message
news:1149623017.042328.284410@g10g2000cwb.googlegroups.com...
> I need a program that can take a list of URLs and and save their source
> page ( html code) on my computer as a text file. Does anyone know of
> anysuch program.
>



Need page source for a list of URLs. Anyone know of any program? Shani
  Re: Need page source for a list of URLs. Anyone know of any program? Skypert
  Re: Need page source for a list of URLs. Anyone know of any program? Adam Piggott
  Re: Need page source for a list of URLs. Anyone know of any program? Susan Bugher
    Re: Need page source for a list of URLs. Anyone know of any program? Al Klein
      Re: Need page source for a list of URLs. Anyone know of any program? Lou
  Re: Need page source for a list of URLs. Anyone know of any program? Bill Miller
|  Re: Need page source for a list of URLs. Anyone know of any program? 3c273
    Re: Need page source for a list of URLs. Anyone know of any program? 3c273
  Re: Need page source for a list of URLs. Anyone know of any program? lisztfr
 
freeware