[washingtonpost] Add extractor (Fixes #2622)

This commit is contained in:
Philipp Hagemeister 2014-03-24 23:21:20 +01:00
parent 7a249480b4
commit fac55558ad
4 changed files with 116 additions and 0 deletions

View file

@ -1328,3 +1328,7 @@ US_RATINGS = {
'R': 16,
'NC': 18,
}
def strip_jsonp(code):
return re.sub(r'(?s)^[a-zA-Z_]+\s*\(\s*(.*)\);\s*?\s*$', r'\1', code)