Basically, I want to use BeautifulSoup to grab strictly the visible text on a webpage. For instance, this webpage is my test case. And I mainly want to just get the
Using BeautifulSoup the easiest way with less code to just get the strings, without empty lines and crap.
tag = soup = BeautifulSoup(tag, 'html.parser') for i in soup.stripped_strings: print repr(i)