Hi,

I can read the home page using the mechanize lib.  Is there a way to
load in web pages using filename.html instad of servername/
filename.html.  Lots of time the links just have the file name.  I'm
trying to read in the links name and then vsit those pages.

here is the sample code I am ussing.


import ClientForm
import mechanize


#get home page
request = mechanize.Request("http://www.activetechconsulting.com";)
response = mechanize.urlopen(request)
print response.read()

#sub page (this does note work)
request = mechanize.Request("service.html")
response = mechanize.urlopen(request)
print response.read-Ted
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to