Isn't Beautiful soup primarily to do screen scraping? I already scraped the content and stored it in a DB. Now I want to do some analysis on the text.
"Programming collective intelligence" is a good book if you are willing to invest time in it. If your goal is just to get this task done, NLTK would work for you.
Also Beautiful Soup is no longer supported. Use html5lib.