def crawl_web(seed): tocrawl=[seed] crawled=[] while tocrawl: ayy=tocrawl.pop() if page not in crawled: union(tocrawl,all_links(get_page(page))) crawled.append() return crawled
def search(list,input): list=all_links(page) for url in list: return url else: print ("No Match")