my code is:

import urllib 
import urllib2 
import re

#get URL
#connect to this website 
#get html file from this website 
#get the address from above html file

print html

How can i find all his addresses in this html,can use the re.complie() method to match the address pattern,but how?

It made with Microsoft Word.
The WORST HTML editor there is.

A good cadidate to use is module: HTMLParser

First clean up the file and get rid of all the style stuff and comments.
Then you have a better view of what the file is made up of.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.