Skip to content

Instantly share code, notes, and snippets.

@billthornton
billthornton / gist:2404165
Created April 17, 2012 07:24
Extracting article contents
# Requires: requests and readability-lxml (http://pypi.python.org/pypi/readability-lxml) (pip install requests readability-lxml)
import requests
def extract_article_contents(url):
"""
Fetch the main body of content
Returns the html, a plaintext version, the title and subtitle
"""
@billthornton
billthornton / gist:1404322
Created November 29, 2011 10:24
Grails stackoverflow error
// ParentController.groovy
package stackoverflow
class ParentController {
def index() {
render "Parent"
}
}