[washingtonpost] Add extractor (Fixes #2622)
This commit is contained in:
parent
7a249480b4
commit
fac55558ad
4 changed files with 116 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue