mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update dotNet Magazine
This commit is contained in:
parent
7360075e04
commit
ae285264c5
@ -11,30 +11,31 @@ class dotnetMagazine (BasicNewsRecipe):
|
|||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
encoding = 'utf8'
|
encoding = 'utf8'
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
auto_cleanup = True
|
||||||
# recursion = 1
|
# recursion = 1
|
||||||
language = 'en'
|
language = 'en'
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
extra_css = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '
|
extra_css = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '
|
||||||
cover_url = u'http://media.netmagazine.futurecdn.net/sites/all/themes/netmag/logo.png'
|
cover_url = u'http://media.netmagazine.futurecdn.net/sites/all/themes/netmag/logo.png'
|
||||||
|
|
||||||
remove_tags_after = dict(name='footer', id=lambda x:not x)
|
#remove_tags_after = dict(name='footer', id=lambda x:not x)
|
||||||
remove_tags_before = dict(name='header', id=lambda x:not x)
|
#remove_tags_before = dict(name='header', id=lambda x:not x)
|
||||||
|
|
||||||
remove_tags = [
|
#remove_tags = [
|
||||||
dict(name='div', attrs={'class': 'item-list'}),
|
#dict(name='div', attrs={'class': 'item-list'}),
|
||||||
dict(name='h4', attrs={'class': 'std-hdr'}),
|
#dict(name='h4', attrs={'class': 'std-hdr'}),
|
||||||
dict(name='div', attrs={'class': 'item-list share-links'}), # removes share links
|
#dict(name='div', attrs={'class': 'item-list share-links'}), # removes share links
|
||||||
dict(name=['script', 'noscript']),
|
#dict(name=['script', 'noscript']),
|
||||||
dict(name='div', attrs={'id': 'comments-form'}), # comment these out if you want the comments to show
|
#dict(name='div', attrs={'id': 'comments-form'}), # comment these out if you want the comments to show
|
||||||
dict(name='div', attrs={'id': re.compile('advertorial_block_($|| )')}),
|
#dict(name='div', attrs={'id': re.compile('advertorial_block_($|| )')}),
|
||||||
dict(name='div', attrs={'id': 'right-col'}),
|
#dict(name='div', attrs={'id': 'right-col'}),
|
||||||
dict(name='div', attrs={'id': 'comments'}), # comment these out if you want the comments to show
|
#dict(name='div', attrs={'id': 'comments'}), # comment these out if you want the comments to show
|
||||||
dict(name='div', attrs={'class': 'item-list related-content'}),
|
#dict(name='div', attrs={'class': 'item-list related-content'}),
|
||||||
|
|
||||||
]
|
#]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'net', u'http://feeds.feedburner.com/net/topstories?format=xml')
|
(u'net', u'http://feeds.feedburner.com/creativebloq/')
|
||||||
]
|
]
|
||||||
|
|
||||||
def skip_ad_pages(self, soup):
|
def skip_ad_pages(self, soup):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user