You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comm = soup.findAll(text=lambda text:isinstance(text, Comment))
[c.extract() for c in comm]
alltags = soup.findAll(text=True)
visable_tags = [t for t in alltags if t.parent.name not in ['style', 'script','script','img', 'head', 'title', 'meta','link','footer','base','applet','iframe','embed','nodembed','object','param','source','[document]']]
visible = ' '.join([re.sub(r'[\n\s\r\t/]+',' ', t) for t in visable_tags])