def getlinks(allHref, baseurl): for tag in allHref: links.append(tag.attrs[\'href\']) for i in range(0,len(links)): if links[i].startswith(\