to establish the connection with the some web page in python
===

I have to work on a project in which I have to establish the connection with the web page so that I can collect the xml dtd schema fragments from that page and apply my search algorithm on it which searches the keywords entered by the user.  I have already created the algorithm in python, but don't know how to establish the connection in python , since I'm new to it. Can anyone guide me at this?As far as I know, socket in network programming in python may help?Am I on right track?

Please Help  