mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
59 lines
2.2 KiB
Plaintext
59 lines
2.2 KiB
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
|
|
|
'''
|
|
Fetch tomshardware.
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class cdnet(BasicNewsRecipe):
|
|
|
|
title = 'tomshardware'
|
|
description = 'computer news in german'
|
|
__author__ = 'Oliver Niesner'
|
|
use_embedded_content = False
|
|
timefmt = ' [%d %b %Y]'
|
|
max_articles_per_feed = 50
|
|
no_stylesheets = True
|
|
encoding = 'utf-8'
|
|
language = 'de'
|
|
|
|
remove_tags = [dict(id='outside-advert'),
|
|
dict(id='advertRightWhite'),
|
|
dict(id='header-advert'),
|
|
dict(id='header-banner'),
|
|
dict(id='header-menu'),
|
|
dict(id='header-top'),
|
|
dict(id='header-tools'),
|
|
dict(id='nbComment'),
|
|
dict(id='commentTools'),
|
|
dict(id='internalSidebar'),
|
|
dict(id='header-news-infos'),
|
|
dict(id='header-news-tools'),
|
|
dict(id='breadcrumbs'),
|
|
dict(id='emailTools'),
|
|
dict(id='bookmarkTools'),
|
|
dict(id='printTools'),
|
|
dict(id='header-nextNews'),
|
|
dict(id='commentsBox'),
|
|
dict(id='showComments'),
|
|
dict(id='footer'),
|
|
dict(id=''),
|
|
dict(name='div', attrs={'class': 'pyjama'}),
|
|
dict(name='div', attrs={'class': 'basicCentral'}),
|
|
dict(name='li', attrs={
|
|
'class': 'simplePagination-previous'}),
|
|
dict(name='form', attrs={'id': 'commentForm'}),
|
|
dict(name='href', attrs={'class': 'comment'}),
|
|
dict(name='div', attrs={'class': 'greyBoxR clearfix'}),
|
|
dict(name='div', attrs={'class': 'greyBoxL clearfix'}),
|
|
dict(name='div', attrs={'class': 'greyBox clearfix'}),
|
|
dict(name='div', attrs={'class': 'labelized'}),
|
|
dict(id='')]
|
|
remove_tags_after = [dict(name='div', attrs={'class': 'labelized'})]
|
|
|
|
feeds = [
|
|
('tomshardware', 'http://www.tomshardware.com/de/feeds/rss2/tom-s-hardware-de,12-1.xml')]
|