mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 07:43:41 +02:00
Improved Atlantic
This commit is contained in:
parent
09a21b8529
commit
22b917ccc5
1 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
'''
|
||||
theatlantic.com
|
||||
'''
|
||||
import string
|
||||
import string, re
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
from calibre.ebooks.BeautifulSoup import Tag, NavigableString
|
||||
|
|
@ -23,6 +23,8 @@ class TheAtlantic(BasicNewsRecipe):
|
|||
remove_tags = [dict(id=['header', 'printAds', 'pageControls'])]
|
||||
no_stylesheets = True
|
||||
|
||||
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
|
||||
|
||||
|
||||
def print_version(self, url):
|
||||
return url.replace('/archive/', '/print/')
|
||||
|
|
|
|||
Loading…
Reference in a new issue