Pages tagged beautifulsoup:

David Ziegler's Blog - A Python Script to Automatically Extract Excerpts From Articles
http://blog.davidziegler.net/post/122176962/a-python-script-to-automatically-extract-excerpts-from

I recently had to write a script that takes a link to an article and returns a title and brief excerpt or description of that article
I recently had to write a script that takes a link to an article and returns a title and brief excerpt or description of that article. Ideally, the excerpt should be the first few sentences from the body of the article.
I recently had to write a script that takes a link to an article and returns a title and brief excerpt or description of that article. Ideally, the excerpt should be the first few sentences from the body of the article. The first thing I struggled with was something I thought would be trivial: fetching the contents of the webpage.
text=re.compile("DOCTYPE")