title: How to scrape only visible webpage text with BeautifulSoup?
body: <p>Basically, I want to use <code>BeautifulSoup</code> to grab strictly the <em>visible text</em> on a webpage. For instance, <a href="http://www.nytimes.com/2009/12/21/us/21storm.html" rel="nofollow noreferrer">this webpage</a> is my test case. And I mainly want to just get the body text (article) and maybe even a few tab names here and there. I have tried the suggestion in this <a href="https://stackoverflow.com/questions/1752662/beautifulsoup-easy-way-to-to-obtain-html-free-contents">SO question</a> that returns lots of <code>&lt;script&gt;</code> tags and html comments which I don't want. I can't figure out the arguments I need for the function <a href="http://www.crummy.com/software/BeautifulSoup/documentation.html#arg-limit" rel="nofollow noreferrer"><code>findAll()</code></a> in order to just get the visible texts on a webpage.</p>
  <p>So, how should I find all visible text excluding scripts, comments, css etc.?</p>