from bs4 import BeautifulSoup
from urllib import urlopen
import re
b = urllib2.urlopen("http://www.apache.org")
soup = BeautifulSoup(b)
for link in soup.findAll('a'):
print " %s link.get" % ('href')
f = open("/home/apache/test/test.txt", "w")
f.write()
f.close()
How to save links automatically repeat??????