import urllib2
from bs4 import BeautifulSoup
import urlparse
import html2text

yoururl=raw_input('Enter your url:')
def function():
    page=urllib2.urlopen('http://'+ yoururl)
    soup=BeautifulSoup('page')
    texts=html2text.html2text(page)
    for tag in soup.findAll('a',href=True):
              raw=tag['href']
              b1=urlparse.urlparse(tag['href']).hostname
              b2=urlparse.urlparse(tag['href']).path
              fulllink=str(b1)+str(b2)
              #print(fulllink)
          
          text=raw_input('Enter combination of word:')
              lowertext=texts.lower()
              
              try:
                re.search(text,texts)
                 h.ignore_links=True
              print h.handle(texts)